用户工具

站点工具


供货商店铺模板

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
供货商店铺模板 [2016/06/02 16:22]
xxh
供货商店铺模板 [2017/06/01 13:59] (当前版本)
行 40: 行 40:
 | _meta   | data  | 页面统计信息 [[公共返回值|查看]] ​    | | _meta   | data  | 页面统计信息 [[公共返回值|查看]] ​    |
 === imems === === imems ===
-^ 名称 ​      ​^ 类型 ​     ^ 说明 ​   +^ 名称 ​           ^ 类型 ​     ^ 说明 ​                    ​
-| id       ​| int     | 广告ID ​ +| id            | int     | 广告ID ​                  ​
-| ad_name ​ | int     | 广告标题 ​ +| ad_name ​      ​| int     | 广告标题 ​                  ​
-| ad_link ​ | string ​ | 广告链接 ​ +| ad_link ​      ​| string ​ | 广告链接 ​                  ​
-| addtime ​ | string ​ | 添加时间 ​ | +| addtime ​      ​| string ​ | 添加时间 ​                  | 
-sorts    ​| int     ​| ​排序号 ​  |+| pic           | string ​ | 广告图片 ​                  
 +ad_link_type  ​| int     ​| ​链接类型 1 外链 2 产品 3 店铺类别  ​|
  
 ===== 3、获取店铺信息 ===== ===== 3、获取店铺信息 =====
行 54: 行 55:
   GET   GET
 === 请求参数 === === 请求参数 ===
-^ 参数名称 ​     ^ 参数类型 ​   ^ 是否必填 ​ ^ 说明 ​                                            ​+^ 参数名称 ​       ^ 参数类型 ​ ^ 是否必填 ​ ^ 说明 ​    ​
-userType ​ | int     ​| 是     | 会员类型 ​1 网店 2 商                                +supplierId ​ | int   ​| 是     | 供货商ID ​ | 
-userId ​   ​| ​int     | 是     | 会员类型对应用户ID                                    +| memberId ​      | int   | 否     | 会员id      | 
-adType ​   ​| string ​ | 是     | 广告位 ​ ​1 ​BANNER滚动广告 ​2  ​背景 3 手机端滚动广告 4 手机端顶广告  ​|+=== 返回值 === 
 +^ 名称 ​            ​^ ​类型 ​     ^ 说明 ​      ^ 
 +| supplier_id ​   | int     ​| ​ID    ​
 +shop_name ​     | string ​ | 店铺名称 ​    | 
 +| desc           | string ​ | 店铺简介 ​    | 
 +| service_tel ​   ​| ​string ​ | 服务电话 ​    | 
 +| linkman ​       | string ​ | 联系人 ​     | 
 +| address ​       | string ​ | 地址 ​      | 
 +| shop_template ​ | int     | 选择模板ID  
 +shop_template_no  ​| string| 选择的模板编号 ​ | 
 +| logo           | string ​ | 店铺LOGO ​  | 
 +| rec_rules ​     | string ​ | 加盟条件 ​    | 
 +| goods_count| int| 产品数 ​   | 
 +| fav_count| int     | 收藏数 ​    | 
 +| description| number| 描述分 ​    | 
 +| service| number| 服务分 ​    | 
 +| logistic| number| 物流分 ​    | 
 +| star| number| 店铺星级 ​    | 
 +===== 4、获取店铺模板列表 ===== 
 + 
 +=== 接口名称 === 
 +  supplier/​templates/​list 
 +=== 请求方式 === 
 +  GET 
 +=== 请求参数 === 
 +^ 参数名称 ​      ^ 参数类型 ​ ^ 是否必填 ​ ^ 说明 ​                   ^ 
 +| tempType ​  | int   | 是     | 模板类型 ​供货商模板 ​分销商模板 ​ 
 +| isDefault ​ | int   | 否     | 是否默认模板 1是 0 否 默认全部    | 
 +| isMobile ​  | int   | 否     | 是否支持手机 ​1是 0 否 默认全部    | 
 +| id         | int   | 否     | 模板ID ​                 ​|
 === 返回值 === === 返回值 ===
 ^ 名称 ​     ^ 类型 ​   ^ 说明 ​        ^ ^ 名称 ​     ^ 类型 ​   ^ 说明 ​        ^
行 63: 行 93:
 | _links ​ | data  | 链接地址信息 [[公共返回值|查看]] ​ | | _links ​ | data  | 链接地址信息 [[公共返回值|查看]] ​ |
 | _meta   | data  | 页面统计信息 [[公共返回值|查看]] ​    | | _meta   | data  | 页面统计信息 [[公共返回值|查看]] ​    |
 +=== imems ===
 +^ 名称 ​               ^ 类型 ​     ^ 说明 ​     ^
 +| id                | int     | 模板ID ​   |
 +| temp_no ​          | string ​ | 模板编号 ​   |
 +| temp_name ​        | string ​ | 模板名称 ​   |
 +| desc              | string ​ | 模板说明 ​   |
 +| pic_thumb ​        | string ​ | PC预览图 ​  |
 +| pic               | string ​ | PC模板图片 ​ |
 +| is_mobile ​        | int     | 是否支持手机 ​ |
 +| mobile_pic_thumb ​ | string ​ | 手机预览图 ​  |
 +| mobile_pic ​       | string ​ | 手机大图 ​   |
 +| is_default ​       | int     | 是否默认模板 ​ |
 +| addtime ​          | string ​ | 添加时间 ​   |
 +===== 5、获取店铺分类=====
  
 +=== 接口名称 ===
 +  shops/class
 +=== 请求方式 ===
 +  GET
 +=== 请求参数 ===
 +^ 参数名称 ​       ^ 参数类型 ​ ^ 是否必填 ​ ^ 说明 ​    ^
 +| supplierId ​ | int   | 是     | 供货商ID ​ |
 +=== 返回值 ===
 +^ 名称 ​    ^ 类型 ​     ^ 说明 ​   ^
 +| id     | int     | 分类ID ​ |
 +| title  | string ​ | 分类名称 ​ |
 +| child  | array   | 子节点 ​  |
 +
 +===== 5、获取店铺产品=====
 +
 +=== 接口名称 ===
 +  shops/​product
 +=== 请求方式 ===
 +  GET
 +=== 请求参数 ===
 +^ 参数名称 ​       ^ 参数类型 ​  ^ 是否必填 ​ ^ 说明 ​     ^
 +| limit       | limit  | 是     | 获取产品数量 ​ |
 +| supplierId ​ | int    | 是     | 供货商ID ​  |
 +=== 返回值 ===
 +^ 名称 ​            ^ 类型 ​     ^ 说明 ​      ^
 +| id            | int     | 产品id ​   |
 +| business_id| int     | 供货商id ​   |
 +| name          | string ​ | 产品名称 ​   |
 +| pic1           | string ​ | 产品图 ​    |
 +| shop_price ​   | number ​ | 产品价格 ​   |
 +| market_price ​ | number ​ | 市场价格 ​   |
 +| sales         | int     | 销量 ​     |
 +| send_point| int     | 赠送积分|
 +
 +===== 6、根据关键字获取店铺列表=====
 +
 +=== 接口名称 ===
 +  shops/list
 +=== 请求方式 ===
 +  GET
 +=== 请求参数 ===
 +^ 参数名称 ​       ^ 参数类型 ​  ^ 是否必填 ​ ^ 说明 ​     ^
 +| keyword| string| 是     | 关键字 ​  |
 +=== 返回值 ===
 +^ 名称 ​            ^ 类型 ​     ^ 说明 ​      ^
  
供货商店铺模板.1464855771.txt.gz · 最后更改: 2017/06/01 13:58 (外部编辑)