颜色图片.md 4.93 KB

1、查询所有开启的颜色列表

查询所有开启的颜色列表(/SellerProductController/querySellerProductColors)

请求参数

注意,通用的头部没有列出。

请求示例 http://127.0.0.1:8088/platform/SellerProductController/querySellerProductColors

请求样例数据

正常返回:
{
    "code": 200,
    "data": [{
            "colorCode": "68EE68",
            "colorName": "黑色",
            "colorValue": "",
            "createTime": 0,
            "id": 2,
            "updateTime": 0
        },
        {
            "colorCode": "68EE68",
            "colorName": "绿色",
            "colorValue": "http://img11.static.yhbimg.com/color/2016/03/02/17/01969293b2c86c1064e8301f647368bed9.png",
            "createTime": 0,
            "id": 1,
            "updateTime": 0
        }
    ],
    "md5": "4653921cf0b342fb364c96976cdbf7a4",
    "message": "查询颜色列表成功."
}

异常返回:

{
    "code": 500,
    "data": [],
    "md5": "8b233b3ba501d3563be331aa58d0fe0d",
    "message": "查询颜色列表错误:错误信息."
}

2、查询商品图片

查询商品图片(/SellerProductController/querySellerProductImg)

请求参数

参数名称 参数类型 可否为空 示例 备注
productSkn int productSkn

注意,通用的头部没有列出。

请求示例 http://127.0.0.1:8088/platform/SellerProductController/querySellerProductImg?productSkn=512587800

请求样例数据

正常返回:
{
    "code": 200,
    "data": [
        {
            "colorId": 11,
            "createTime": 1491984544,
            "factoryCode": "ASD005",
            "factoryGoodsName": "红色",
            "goodsColorImage": "/2017/04/12/16/01a5e0e7e3d9a1cdc0542df59d7f8be489.jpg",
            "goodsImagesList": [
                {
                    "angle": 0,
                    "genderCover": 0,
                    "id": 1002900,
                    "imageUrl": "http://img10.static.yhbimg.com/goodsimg/2017/04/12/16/01a5e0e7e3d9a1cdc0542df59d7f8be489.jpg",
                    "isDefault": "Y",
                    "orderBy": 0,
                    "productSkc": 680280,
                    "productSkn": 512587800,
                    "status": 1
                },
                {
                    "angle": 0,
                    "genderCover": 1,
                    "id": 1002902,
                    "imageUrl": "http://img11.static.yhbimg.com/goodsimg/2017/04/14/10/01230bd0b1607b5cfee0d91d33ec11cb9d.jpg",
                    "isDefault": "N",
                    "orderBy": 1,
                    "productSkc": 680280,
                    "productSkn": 512587800,
                    "status": 1
                }
            ],
            "goodsName": "红色",
            "isDefault": "Y",
            "productSkc": 680280,
            "productSkn": 512587800,
            "updateTime": 1491984544
        }
    ],
    "md5": "142f4d004247f904751020d5b348f9e3",
    "message": "查询图片信息成功."
}

异常返回:

{
    "code": 400,
    "data": [],
    "md5": "d751713988987e9331980363e24189ce",
    "message": "店铺id错误"
}

{
    "code": 500,
    "data": [],
    "md5": "8b233b3ba501d3563be331aa58d0fe0d",
    "message": "查询图片信息失败:错误信息."
}

3、更新商品图片

更新商品图片(/SellerProductController/updateSellerProductImg)

请求参数【与网销信息一致】

参数名称 参数类型 可否为空 示例 备注
goodsImagesReqStr string 图片信息
productSkn int sln
sknDefaultImg string 默认图片

注意,通用的头部没有列出。

请求示例 http://127.0.0.1:8088/platform/SellerProductController/updateSellerProductImg?goodsImagesReqStr={"goodsImagesBoList":"[{\"angle\":0,\"genderCover\":0,\"id\":1002976,\"imageUrl\":\"http://img13.static.yhbimg.com/goodsimg/2017/04/18/11/02c52592f14a13be1014aa8c116b5d4e1c.jpg\",\"isDefault\":\"Y\",\"orderBy\":0,\"productSkc\":680416,\"productSkn\":512587896,\"status\":1},{\"angle\":0,\"genderCover\":0,\"id\":1002978,\"imageUrl\":\"http://img12.static.yhbimg.com/goodsimg/2017/04/18/11/028adf5dd962895c11feb2fec8ef0c5b32.jpg\",\"isDefault\":\"Y\",\"orderBy\":0,\"productSkc\":680418,\"productSkn\":512587896,\"status\":1}]","productSkc":680416,"productSkn":512587896}&productSkn=512587896&sknDefaultImg=http://img12.static.yhbimg.com/goodsimg/2017/04/19/10/0261ce267c95a8ac1c55428cd1825876e7.jpg

请求样例数据

正常返回:
{
    "code": 200,
    "data": [],
    "md5": "d751713988987e9331980363e24189ce",
    "message": "更新图片信息成功."
}
异常返回:

{
    "code": 400,
    "data": [],
    "md5": "d751713988987e9331980363e24189ce",
    "message": "SKN错误"
}

{
    "code": 500,
    "data": [],
    "md5": "8b233b3ba501d3563be331aa58d0fe0d",
    "message": "更新图片信息失败:错误信息."
}