货架管理.md 4.89 KB

1、根据货架code获取货架详情

公共请求参数

参数名称 参数类型 长度 可否为空 示例 默认值 备注
client_secret string 50 5ac68f20cb18efe154be 进入接口提供的参数加密信息
app_version float 10 1 APP版本
os_version string 20 Android4.4 系统版本+机器型号
client_type string 20 iphone/android/ipad 手机型号(不区分大小写)
screen_size string 20 800x900 (手机尺寸)

请求参数

参数名称 参数类型 长度 可否为空 示例 默认值 备注
goodsShelvesCode String 1-1-F-212 货架code

接口说明

注意,通用的头部没有列出。
请求示例
http://192.168.102.210:8080/portal-gateway/LineShopsController/getGoodsShelvesInfoByShelvesCode?debug=XYZ&goodsShelvesCode=1-1-F-212

响应

code为200即为成功,否则是失败。

响应成功JSON格式如下所示:

{
  "code": 200,
  "message": "success",
  "data": {
    "createUserId": 50,
    "createUserName": null,
    "createTime": 1472458174,
    "createTimeStr": null,
    "status": null,
    "statusStr": null,
    "updateTime": 1472468641,
    "updateTimeStr": null,
    "id": 212,
    "regionId": 916,
    "goodsShelvesName": "1层区域F货架3",
    "goodsShelvesType": 1,
    "goodsShelvesCode": "1-1-F-212",
    "goodsLocationCode": null,
    "floorNum": null,
    "floorCode": null,
    "regionCode": null,
    "planURL": null,
    "dispatchNum": null,
    "displayNum": null,
    "productName": null,
    "goodsShelvesTypeName": "正常货位",
    "furnitureNum": null,
    "furnitureCode": null,
    "furnitureIds": null,
    "oldFurnitureIds": null,
    "furnitureInfo": null,
    "productInfo": null
  }
} 

2、根据货架code获取货架商品详情

公共请求参数

参数名称 参数类型 长度 可否为空 示例 默认值 备注
client_secret string 50 5ac68f20cb18efe154be 进入接口提供的参数加密信息
app_version float 10 1 APP版本
os_version string 20 Android4.4 系统版本+机器型号
client_type string 20 iphone/android/ipad 手机型号(不区分大小写)
screen_size string 20 800x900 (手机尺寸)

请求参数

参数名称 参数类型 长度 可否为空 示例 默认值 备注
goodsShelvesCode String 1-1-F-212 货架code

注意,通用的头部没有列出。
请求示例
http://192.168.102.210:8080/portal-gateway/LineShopsController/getGoodsShelvesDetailByShelvesCode?debug=XYZ&goodsShelvesCode=1-1-F-212

响应

code为200即为成功,否则是失败。

响应成功JSON格式如下所示:

{
  "code": 200,
  "message": "success",
  "data": {
    "createUserId": 50,
    "createUserName": null,
    "createTime": 1472458174,
    "createTimeStr": null,
    "status": null,
    "statusStr": null,
    "updateTime": 1472468641,
    "updateTimeStr": null,
    "id": 212,
    "regionId": 916,
    "goodsShelvesName": "1层区域F货架3",
    "goodsShelvesType": 1,
    "goodsShelvesCode": "1-1-F-212",
    "goodsLocationCode": null,
    "floorNum": null,
    "floorCode": null,
    "regionCode": null,
    "planURL": null,
    "dispatchNum": null,
    "displayNum": null,
    "productName": null,
    "goodsShelvesTypeName": "正常货位",
    "furnitureNum": null,
    "furnitureCode": null,
    "furnitureIds": null,
    "oldFurnitureIds": null,
    "furnitureInfo": null,
    "productInfo": [
      {
        "createUserId": null,
        "createUserName": null,
        "createTime": null,
        "createTimeStr": null,
        "status": null,
        "statusStr": null,
        "updateTime": null,
        "updateTimeStr": null,
        "productId": "50019246",
        "sku": "144915",
        "size": "F",
        "skc": "21589",
        "color": "灰色",
        "skn": "50019246",
        "productName": "Nike 6.0 DEUCE",
        "brandName": "Nike",
        "shelveTime": "",
        "category1": null,
        "category1Name": "包类/装备",
        "category2": null,
        "category2Name": "双肩包",
        "category3": null,
        "category3Name": "双肩包",
        "category4": null,
        "category4Name": "",
        "sex": "通用",
        "attibute": "普通商品",
        "thisShopCanSale": "是",
        "thisShopOnSale": "是",
        "book": "否",
        "limit": "否",
        "tagPrice": "0.0",
        "salePrice": "279.0",
        "grossMargin": "",
        "pic": "http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png",
        "isDefault": null,
        "skcColor": "21589(灰色)",
        "category": "包类/装备/双肩包"
      }
    ]
  }
}