| 两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
|
网店_分销商_模板 [2016/06/28 20:46] xxh [Table] |
网店_分销商_模板 [2017/06/01 13:59] (当前版本) |
||
|---|---|---|---|
| 行 77: | 行 77: | ||
| GET | GET | ||
| === 请求参数 === | === 请求参数 === | ||
| - | ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | + | ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ |
| - | | userId | int | 是 | 网店用户ID | | + | | userId | int | 是 | 网店用户ID | |
| - | | supplierId | int | 否 | 供货商ID | | + | | supplierId | int | 否 | 供货商ID | |
| - | | classId | int | 否 | 分类ID | | + | | classId | int | 否 | 分类ID | |
| - | | keyword | string | 否 | 关键字查询 | | + | | keyword | string | 否 | 关键字查询 | |
| - | | productId | string | 否 | 产品ID 多个产品用逗号分隔 | | + | | productId | string | 否 | 产品ID 多个产品用逗号分隔 | |
| + | | orderField | string | 否 | 排序字段 shop_price 价格 sales 销量 views 浏览量 send_point 赠送工分 id 时间(默认) | | ||
| + | | sortBy | string | 否 | 排序方式 asc 由小到大 desc 由大到小(默认) | | ||
| + | | pages| int| 否 | 页数 默认1 | | ||
| + | | pageSize| int| 否 | 分页数量 默认10 | | ||
| === 返回值 === | === 返回值 === | ||
| ^ 名称 ^ 类型 ^ 说明 ^ | ^ 名称 ^ 类型 ^ 说明 ^ | ||
| 行 206: | 行 210: | ||
| data参数说明 | data参数说明 | ||
| - | ^ 名称 ^ 类型 ^ 说明 ^ | + | ^ 名称 ^ 类型 ^ 说明 ^ |
| - | | shop_name | string | 网店名称 | | + | | shop_name | string | 网店名称 | |
| - | | desc | string | 店铺介绍 | | + | | desc | string | 店铺介绍 | |
| - | | service_tel | string| 服务电话| | + | | service_tel | string | 服务电话 | |
| - | | linkman | string|联系人| | + | | linkman | string | 联系人 | |
| - | | address | string| 店铺地址| | + | | address | string | 店铺地址 | |
| - | | shop_template | int| 模板ID| | + | | shop_template | int | 模板ID | |
| - | | logo | string| 店铺LOGo| | + | | shop_template_no | string | 模板编号 | |
| + | | logo | string | 店铺LOGo | | ||
| ===== 12、获取店铺广告列表 ===== | ===== 12、获取店铺广告列表 ===== | ||
| 行 245: | 行 250: | ||
| ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | ||
| | userId | int | 是 | 网店用户ID | | | userId | int | 是 | 网店用户ID | | ||
| + | | adId | int | 否 | 编辑广告ID | | ||
| | adType | int | 否 | 广告类型 1 BANNER滚动广告 2 顶部背景 3 手机端滚动广告 4 手机端顶部广告 | | | adType | int | 否 | 广告类型 1 BANNER滚动广告 2 顶部背景 3 手机端滚动广告 4 手机端顶部广告 | | ||
| | adName | string | 是 | 广告名称 | | | adName | string | 是 | 广告名称 | | ||
| 行 344: | 行 350: | ||
| GET | GET | ||
| === 请求参数 === | === 请求参数 === | ||
| - | ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | + | ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ |
| - | | userId | int | 是 | 网店用户ID | | + | | userId | int | 是 | 网店用户ID | |
| - | | place| string | 是 | 推荐位置 | | + | | place | string | 是 | 推荐位置,多个以逗号分隔 place_new 新品 place_hot 热销 place_recomm 推荐 | |
| === 返回值 === | === 返回值 === | ||
| ^ 名称 ^ 类型 ^ 说明 ^ | ^ 名称 ^ 类型 ^ 说明 ^ | ||
| 行 359: | 行 365: | ||
| | intro | string | 供货商名称 | | | intro | string | 供货商名称 | | ||
| | business_id | string | 供货商ID | | | business_id | string | 供货商ID | | ||
| + | | recommend | string | 推荐位置 | | ||
| + | |||
| + | ===== 20、分销商申请 ===== | ||
| + | |||
| + | === 接口名称 === | ||
| + | distributors/create | ||
| + | === 请求方式 === | ||
| + | post | ||
| + | === 请求参数 === | ||
| + | ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | ||
| + | | supplier_id| string| 是 | 供货商id | | ||
| + | | member_id| int| 是 | 会员id | | ||
| + | | link_man| string| 是 | 联系人 | | ||
| + | | link_mobile| string| 是 | 联系电话 | | ||
| + | | desc| string| 是 | 备注 | | ||
| + | |||
| + | === 返回值 === | ||
| + | ^ 名称 ^ 类型 ^ 说明 ^ | ||
| + | | result | bool | 返回结果 success 成功 error 失败 | | ||
| + | | message| string | 返回信息 | | ||
| + | |||
| + | ===== 21、分销商申请详情 ===== | ||
| + | |||
| + | === 接口名称 === | ||
| + | distributors/detail | ||
| + | === 请求方式 === | ||
| + | get | ||
| + | === 请求参数 === | ||
| + | ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | ||
| + | | supplier_id| string| 是 | 供货商id | | ||
| + | | member_id| int| 是 | 会员id | | ||
| + | === 返回值 === | ||
| + | ^ 名称 ^ 类型 ^ 说明 ^ | ||
| + | | audit_date| string| 审核时间 | | ||
| + | | status| string | 状态 0 待审核 10 审核通过 20 审核未过 30 取消合作 | | ||
| + | | audit_desc| string | 审核意见 | | ||
| + | | supplier_id| string | 供货商id | | ||
| + | | link_man| string | 联系人 | | ||
| + | | link_mobile| string | 联系人手机| | ||
| + | | desc| string |备注 | | ||
| + | |||
| + | |||
| + | ===== 22、分销商申请日志 ===== | ||
| + | |||
| + | === 接口名称 === | ||
| + | distributors/log-list | ||
| + | === 请求方式 === | ||
| + | get | ||
| + | === 请求参数 === | ||
| + | ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | ||
| + | | memberId| int| 是 | 会员id | | ||
| + | | pageSize| int| 否 | 条数,默认50 | | ||
| + | | status| int| 否 | 状态 | | ||
| + | |||
| + | === 返回值 === | ||
| + | ^ 名称 ^ 类型 ^ 说明 ^ | ||
| + | | apply_date| string| 申请时间 | | ||
| + | | close_date| string| 取消合作时间 | | ||
| + | | audit_date| string| 审核时间 | | ||
| + | | status| string | 状态 0 待审核 10 审核通过 20 审核未过 30 取消合作 | | ||
| + | | audit_desc| string | 审核意见 | | ||
| + | | supplier_id| string | 供货商id | | ||
| + | | link_man| string | 联系人 | | ||
| + | | link_mobile| string | 联系人手机| | ||
| + | | desc| string |备注 | | ||
| + | |shop_url|string|店铺地址| | ||
| + | |shopName|string|店铺名称| | ||
| + | |||
| + | ===== 22、分销商统计 ===== | ||
| + | |||
| + | === 接口名称 === | ||
| + | distributors/statistics | ||
| + | === 请求方式 === | ||
| + | get | ||
| + | === 请求参数 === | ||
| + | ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | ||
| + | | memberId| int| 是 | 会员id | | ||
| + | |||
| + | === 返回值 === | ||
| + | ^ 名称 ^ 类型 ^ 说明 ^ | ||
| + | | supplierNum| int| 供货商数量 | | ||
| + | | productNum| int| 产品数量 | | ||
| + | | meetingPreparation| int| 待审核会议 | | ||
| + | | online| int| 上线会议 | | ||
| + | | success| int| 成功举办会议 | | ||
| + | | todayPublish| int| 今日举办的会议 | | ||
| + | | member| int| 会员数量 | | ||
| + | | org| int| 组织者数量| | ||
| + | | todayMember| int|今日新增会员 | | ||
| + | |todayOrg|int|今日新组织者| | ||
| + | |||
| + | |||
| + | ===== 23、获取多个店铺广告列表 ===== | ||
| + | |||
| + | === 接口名称 === | ||
| + | shop/ads/multi-list | ||
| + | === 请求方式 === | ||
| + | GET | ||
| + | === 请求参数 === | ||
| + | ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | ||
| + | | userId | int | 是 | 网店用户ID | | ||
| + | | adId | int | 否 | 广告ID | | ||
| + | | typeJson| json| 否 | 广告类型:数量 (1 BANNER滚动广告 2 顶部背景 3 手机端滚动广告 4 手机端顶部广告 {"4": 1, "3": 2} ) | | ||
| + | === 返回值 === | ||
| + | ^ 名称 ^ 类型 ^ 说明 ^ | ||
| + | | id | int | 分类ID | | ||
| + | | ad_name | string | 广告名称 | | ||
| + | | ad_link | string | 广告链接地址 | | ||
| + | | pic | string | 广告图片 | | ||
| + | | ad_type | int | 广告类型 | | ||
| + | | ad_type_name | string | 广告类型名称 | | ||
| + | | sorts | int | 排序号 | | ||
| + | | addtime | string | 添加时间 | | ||
| + | |||
| + | ===== 24、分销商加盟的供货商 ===== | ||
| + | |||
| + | === 接口名称 === | ||
| + | distributors/have-join | ||
| + | === 请求方式 === | ||
| + | get | ||
| + | === 请求参数 === | ||
| + | ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | ||
| + | | memberId| int| 是 | 会员id | | ||
| + | |||
| + | === 返回值 === | ||
| + | ^ 名称 ^ 类型 ^ 说明 ^ | ||
| + | | data| array| 加盟的供货商id | | ||