颜色图片.md 3.3 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": "查询图片信息失败:错误信息."
}