shops_decorator.md 2.83 KB

店铺装修接口

保存店铺装修系信息

POST /shops/decorator/saveShopsDecorator

入参

request body


{
  "shopsId":1,
  "platform": "APP",
  "templateName": "BASE",
  "resources": [
    {
      "name": "shopTopBanner",
      "data": {
        "src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png",
        "isShowShopName": "Y"
      }
    },
    {
      "name": "productDetailTopBanner",
      "data": {
        "src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/015}5598441256e46ec285a8ea64e762394.png"
      }
    },
    {
      "name": "oneRowTwoColImages",
      "data": [
        {
          "position": 1,
          "src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png",
          "url": {},
          "startTime": 1309514897,
          "endTime": 1309514967,
          "publishStatus": 0
        }
      ]
    },
    {
      "name": "hotProducts",
      "data": [
        50000881,
        50000882,
        50000883,
        50000884,
        50000885,
        50000886,
        50000887,
        50000888
      ]
    }
  ]
}
参数名 必填 类型 示例值 描述
shopsId int 1 店铺编号
platform string APP 平台名称
templateName string BASE 模板名称
resources json 资源

资源描述-店铺头部横幅

参数名 必填 类型 示例值 描述
name string shopTopBanner 资源名称
data json 资源内容
src string http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png 店铺头部横幅图片
isShowShopName string Y 是否显示店铺名称

资源描述-商品详情头部横幅

参数名 必填 类型 示例值 描述
name string productDetailTopBanner 资源名称
data json 资源内容
src string http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png 商品详情头部横幅图片

返回


{
  "code": 200,
  "message": "操作成功"
}