Authored by zhaoqi

Merge remote-tracking branch 'origin/master'

Too many changes to show.

To preserve performance only 9 of 9+ files are displayed.

## 1、根据sso_id获取uid ##
根据sso_id获取uid (method=app.passport.getUidback)
**公共请求参数**
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
| ---------|:--------:| --------:|-----:|------:|-----:|------:|
|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 |否 |800*900 | |(手机尺寸)|
**请求参数:**
| 参数名称 | 参数类型 |可否为空 |示例 |默认值 | 备注 |
| ---------|:--------:| --------:|-----:|------:|-----:|
|ssoId |int | 否 |10059 |0 | |
注意,通用的头部没有列出。
请求示例http://192.168.102.217:8080/gateway?method=app.passport.getUidback&ssoId=10059&debug=XYZ
**响应(data里为int类型)**
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"ssoId": 10059,
"uid": 31
},
"md5": "23959c9afe34d9520bf69e014d459e78",
"message": "Uid info"
}
{
"code": 408,
"message": "sso_id不能为空"
}
## 2、增加记录,获取生成用户id##
增加记录,获取生成用户id(method=app.passport.addUserprofile)
**公共请求参数**
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
| ---------|:--------:| --------:|-----:|------:|-----:|------:|
|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 |否 |800*900 | |(手机尺寸)|
**请求参数:**
| 参数名称 | 参数类型 |可否为空 |示例 |默认值 | 备注 |
| ---------|:--------:| --------:|-----:|------:|-----:|
|ssoId |int | 否 |9852993 |- | |
|mobile |String | 是 |15212236292 | |电话号码 |
|email |String | 是 |152155@126.com | |用户邮箱 |
|password |String | 是 |min88111086 | |用户密码|
|areacode |String | 是 | | |用户地区编号|
注意,通用的头部没有列出。
请求示例http://192.168.102.217:8080/gateway?method=app.passport.addUserprofile&debug=XYZ
请求body
{
"ssoId": 9852993,
"mobile": 15212236292,
"email": 152155@126.com ,
"password": min88111086,
"areacode":123
}
**响应(data里为int类型)**
code为200即为成功,否则是失败。 响应JSON格式如下所示:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"ssoId": 9852993,
"uid": 8050256
},
"md5": "092120aa35acf86098caad0176a3c174",
"message": "Uid info"
}
{
"code": 408,
"message": "sso_id不能为空"
}
{
"code": 405,
"message": "mobile与email不能都为空"
}
{
"code": 403,
"message": "password不合法"
}
... ...
... ... @@ -19,7 +19,7 @@
请求示例
http://192.168.102.217:8080/gateway?method=app.yohocoin.total&uid=50030141&debug=XYZ
### 响应(data里所有的字段返回都是string类型)
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
... ... @@ -43,4 +43,533 @@ code为200即为成功,否则是失败。
"md5": "f4a7a490bb6666b005008d795ed14e5d",
"message": "uid为空!"
}
```
## 2、收入mars点数##
收入mars点数(method=app.marspoint.acquire)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|213|0|用户id|
|num|int|否|100|0|mars点数|
|type|int|否|17或者18|0|地点签到:17,合格评价:18|
|marsId|String|否|123456789|0|关联合格评价的具体评价,关联地点签到的具体地点|
|pid|int|是|100|0|erp操作人员的uid|
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway?method=app.marspoint.acquire&debug=XYZ
入口参数body
```json
{
"uid": 50030199,
"num": 100,
"type": 18,
"marsId": 123456789,
"pid": 11111111
}
```
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"currency": "200",
"uid": 50030199
},
"md5": "a2f546011378a51fffc9f09e56ae6f22",
"message": "ok"
}
```
```json
{
"code": 400,
"message": "请先登录"
}
```
```json
{
"code": 402,
"message": "获取的mars点数不合法"
}
```
```json
{
"code": 403,
"message": "type不合法"
}
```
```json
{
"code": 405,
"message": "marsId不能为空"
}
```
## 3、兑换mars点数##
兑换mars点数(method=app.marspoint.exchange)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|213|0|用户id|
|num|int|否|-100|0|mars点数|
|type|int|否|19、20或21|0|兑换实物:19,兑换话费:20,兑换电子券:21|
|orderCode|String|否|123456789|0|订单号|
|pid|int|是|100|0|erp操作人员的uid|
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway?method=app.marspoint.exchange&debug=XYZ
入口参数body
```json
{
"uid": 50030199,
"num": -150,
"type": 20,
"orderCode": 1234567890,
"pid": 11111111
}
```
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"currency": "200",
"uid": 50030199
},
"md5": "a2f546011378a51fffc9f09e56ae6f22",
"message": "ok"
}
```
```json
{
"code": 400,
"message": "请先登录"
}
```
```json
{
"code": 402,
"message": "获取的mars点数不合法"
}
```
```json
{
"code": 403,
"message": "type不合法"
}
```
```json
{
"code": 406,
"message": "orderCode不能为空"
}
```
## 4、mars点数明细接口##
mars点数(method=app.yohocoin.lists)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|213|0|用户id|
|page|int|是|2|1|页数|
|limit|int|是|20|20|每页的记录数|
|queryType|int|是|0|0|0-所有;1-收入;2-支出|
|beginTime|String|是|2016-05-18|0|开始时间|
|endTime|String|是|2016-05-18|0|结束时间|
注意,通用的头部没有列出。
请求示例
有货币(mars points)明细:
http://192.168.102.217:8080/gateway?method=app.yohocoin.lists&uid=50030147&debug=XYZ
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"coinlist": [
{
"date": "2015-12-31 00:39:46",
"key": "10",
"message": "原有YOHO币10个,初始化变更",
"num": 1000,
"type": 1,
"title": "原有YOHO币%s个,初始化变更"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "订单取消退还:订单123456789",
"num": 1000,
"type": 2,
"title": "订单取消退还:订单%s"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "活动奖励",
"num": 1000,
"type": 3,
"title": "活动奖励"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "充值",
"num": -1000,
"type": 4,
"title": "充值"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "签到奖励",
"num": 1000,
"type": 5,
"title": "签到奖励"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "抽奖活动奖励",
"num": 1000,
"type": 6,
"title": "抽奖活动奖励"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "调研问卷奖励",
"num": 1000,
"type": 7,
"title": "调研问卷奖励"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "完善资料奖励",
"num": 1000,
"type": 8,
"title": "完善资料奖励"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "下单使用:订单123456789",
"num": -1000,
"type": 9,
"title": "下单使用:订单%s"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "退货退还:订单123456789",
"num": 10,
"type": 10,
"title": "退货退还:订单%s"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "活动赠送:订单123456789",
"num": 500,
"type": 11,
"title": "活动赠送:订单%s"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "抽奖使用",
"num": -50,
"type": 12,
"title": "抽奖使用"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "购买商品赠送:xxxx",
"num": -500,
"type": 13,
"title": "购买商品赠送:%s"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "晒单奖励:xxxxxx",
"num": 1000,
"type": 14,
"title": "购买商品赠送:%s"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "补差价:xxxxx",
"num": -50,
"type": 15,
"title": "补差价:%s"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "积分过期",
"num": -1000,
"type": 16,
"title": "积分过期"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "你今日已在\"costa咖啡奥体店\"完成签到",
"num": 1000,
"type": 17,
"title": "地点签到"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "xxx的酒吧可以看到黄浦江两边的超赞",
"num": 1000,
"type": 18,
"title": "合格评价"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "xxxxxxxxxx",
"num": -500,
"type": 19,
"title": "兑换实物"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "50元充值话费(中国移动/中国联通/中国电信)",
"num": -1000,
"type": 20,
"title": "兑换话费"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "xxxxxxxxx",
"num": -1000,
"type": 21,
"title": "兑换电子券"
},
{
"date": "2015-12-21 19:18:40",
"key": "10",
"message": "mars点数兑换失败",
"num": 1000,
"type": 22,
"title": "mars点数兑换失败"
}
],
"limit": 20,
"page": 1,
"page_total": 2,
"total": 2
},
"md5": "4d83a2697b11ba3faf4abf9133941502",
"message": "yoho coin list"
}
```
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"coinlist": [
{
"date": "2016-05-20 11:30:32",
"message": "2016-03-16订单兑换失败,积分返还213415",
"num": 200,
"title": "mars点数兑换失败",
"type": 22
},
{
"date": "2016-05-20 11:28:47",
"message": "兑换电子卷53415",
"num": -200,
"title": "兑换电子券",
"type": 21
},
{
"date": "2016-05-20 11:28:03",
"message": "兑换话费2314",
"num": -50,
"title": "兑换话费",
"type": 20
},
{
"date": "2016-05-20 11:27:13",
"message": "兑换实物624",
"num": -100,
"title": "兑换实物",
"type": 19
},
{
"date": "2016-05-20 11:25:25",
"message": "2016-04-15在德吉完成签到5462",
"num": 300,
"title": "地点签到",
"type": 17
},
{
"date": "2016-05-20 11:24:44",
"message": "2016-04-15在黄山完成签到5132214",
"num": 200,
"title": "地点签到",
"type": 17
},
{
"date": "2016-05-20 11:23:08",
"message": "这是一条合格的评价214123",
"num": 100,
"title": "合格评价",
"type": 18
}
],
"limit": 20,
"page": 1,
"page_total": 7,
"total": 7
},
"md5": "bdda1cb138535afc516aa4245eaf8699",
"message": "yoho coin list"
}
```
## 5、兑换失败返回被使用的mars点数##
兑换失败返回被使用的mars点数(method=app.marspoint.return)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|213|0|用户id|
|num|int|否|100|0|mars点数|
|type|int|否|22|0|mars点数兑换失败:22|
|orderCode|String|否|123456789|0|订单号|
|pid|int|是|100|0|erp操作人员的uid|
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway?method=app.marspoint.return&debug=XYZ
入口参数body
```json
{
"uid": 50030199,
"num": 150,
"type": 22,
"orderCode": 1234567890,
"pid": 11111111
}
```
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"currency": "200",
"uid": 50030199
},
"md5": "a2f546011378a51fffc9f09e56ae6f22",
"message": "ok"
}
```
```json
{
"code": 400,
"message": "请先登录"
}
```
```json
{
"code": 402,
"message": "获取的mars点数不合法"
}
```
```json
{
"code": 403,
"message": "type不合法"
}
```
```json
{
"code": 406,
"message": "orderCode不能为空"
}
```
\ No newline at end of file
... ...
## 1、获取用户浏览记录商品列表 ##
获取用户浏览记录商品列表(?method=app.browse.product)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|uid|int|否|1-11|3566164||用户id|
|page|int|否||1||页数|
|limit|int|否||10||一页显示条数|
#### 接口说明
| 接口说明||
|:-------| -----:|
|请求域名|http://api.yoho.cn|
|接口名|app.browse.product|
|获取用户浏览记录商品列表|
|http请求方式|POST/GET|
#### 返回错误
|错误code|错误提示|
|:-------| -----:|
|500|请先登录|
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8080/gateway?method=app.browse.product&uid=8040080&page=1&limit=10
### 响应
code为200即为成功,否则是失败。
响应参数,data部分
响应成功JSON格式如下所示:
```json
{
"code": 200,
"message": "Sales Product List",
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"alg": "SALT_MD5",
"data": []
}
```
响应失败JSON格式如下所示:
```json
{
"code": 500,
"message": "请先登录",
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"alg": "SALT_MD5",
"data": []
}
```
2.删除/清空用户浏览记录
删除/清空用户浏览记录(?method=app.browse.delete)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|uid|int|否|1-11|8004080||用户id|
|skn|String|否|1-11|51082157||skn|
|category_id|String|否|1-5|123||分类id|
#### 接口说明
| 接口说明||
|:-------| -----:|
|请求域名|http://api.yoho.cn|
|接口名|app.browse.delete|
|删除/清空用户浏览记录|
|http请求方式|POST/GET|
#### 返回错误
|错误code|错误提示|
|:-------| -----:|
|400|用户ID错误|
|400|请先登录|
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8080/gateway?method=app.browse.delete&uid=8004080&skn=51082157&category_id=125
### 响应
code为200即为成功,否则是失败。
响应参数,data部分
响应成功JSON格式如下所示:
```json
{
"code": 200,
"message": "delete success",
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"alg": "SALT_MD5",
"data": []
}
```
响应失败JSON格式如下所示:
```json
{
"code": 400,
"message": "用户ID错误",
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"alg": "SALT_MD5",
"data": []
}
```
```json
{
"code": 400,
"message": "请先登录",
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"alg": "SALT_MD5",
"data": []
}
```
## 3、批量新增浏览记录 ##
批量新增浏览记录(?method=app.browse.addBrowseBatch)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|uid|String|否|1-11|8040080||用户id|
|udid|String|否|1-100|f5f38dbc1ec9ddde5ee8bff4091bdf960f76d532||udid|
|browseList|String|否||[{"product_skn":"51082157","category_id":"1"},{"product_skn":"51149414","category_id":"1"}]||批量浏览记录|
#### 接口说明
| 接口说明||
|:-------| -----:|
|请求域名|http://api.yoho.cn|
|接口名|app.browse.addBrowseBatch|
|接口说明|批量新增浏览记录|
|http请求方式|POST/GET|
#### 返回错误
|错误code|错误提示|
|:-------| -----:|
|400|用户ID错误|
|400|浏览记录列表为空|
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8080/gateway?method=app.browse.addBrowseBatch&uid=8040080&udid=f5f38dbc1ec9ddde5ee8bff4091bdf960f76d532&browseList=[{"product_skn":"51082157","category_id":"1"},{"product_skn":"51149414","category_id":"1"}]
### 响应
code为200即为成功,否则是失败。
响应参数,data部分
响应成功JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": 6,
"md5": "b3ba9f9280e241bff5f4b630cbedd06e",
"message": "addBrowseBatch success"
}
```
响应失败JSON格式如下所示:
```json
{
"code": 400,
"message": "用户ID错误",
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"alg": "SALT_MD5",
"data": []
}
```
```json
{
"code": 400,
"message": "浏览记录列表为空",
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"alg": "SALT_MD5",
"data": []
}
```
## 4、获取浏览记录的数量 ##
获取浏览记录的数量(?method=app.home.getInfoNum)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|uid|int|否|1-11|8040080||用户id|
|udid|String|否|1-100|f5f38dbc1ec9ddde5ee8bff4091bdf960f76d532||udid|
#### 接口说明
| 接口说明||
|:-------| -----:|
|请求域名|http://api.yoho.cn|
|接口名|app.home.getInfoNum|
|接口说明|获取浏览记录的数量|
|http请求方式|POST/GET|
#### 返回错误
|错误code|错误提示|
|:-------| -----:|
|500|uid is null|
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8080/gateway?method=app.home.getInfoNumu&uid=8040080&udid=f5f38dbc1ec9ddde5ee8bff4091bdf960f76d532
### 响应
code为200即为成功,否则是失败。
响应参数,data部分
响应成功JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"brand_favorite_total": 0,
"comment_total": 0,
"coupon_num": 0,
"inbox_total": 0,
"limitCodeNum": 0,
"product_browse": 20,
"product_favorite_total": 1,
"refund_exchange_num": 0,
"send_cargo_num": 0,
"showOrderNum": 1,
"toShareOrderNum": 1,
"wait_cargo_num": 0,
"wait_pay_num": 0,
"yoho_coin_num": 0
},
"md5": "bc44aca8c575ddf9718fd73d7ba07852",
"message": "Get info num is success!"
}
```
响应失败JSON格式如下所示:
```json
{
"code": 500,
"message": "uid is null",
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"alg": "SALT_MD5",
"data": []
}
... ...
... ... @@ -16,65 +16,26 @@ code为200即为成功,否则是失败。
```json
{
"code": 200,
"data": {
"list": [
"data": [
{
"brandId": 1616, --品牌id
"brandName": "12", --品牌名
"brandDomain" : "",-- 品牌domain
"createTime": 1462954166,
"creatorId": 2794,
"creatorName": "wxtest1",
"id": 12,
"modifyId": 2794,
"modifyName": "wxtest1",
"modifyTime": 1462954760,
"orderBy": 12123, --排序
"status": 0
"orderBy": 12123 --排序
},
{
"brandId": 1616,
"brandName": "12",
"createTime": 1462954132,
"creatorId": 2794,
"creatorName": "wxtest1",
"id": 10,
"modifyId": 2794,
"modifyName": "wxtest1",
"modifyTime": 1462954185,
"orderBy": 1123,
"status": 0
"orderBy": 1123
},
{
"brandId": 1632,
"brandName": "test1",
"createTime": 1462954329,
"creatorId": 0,
"id": 14,
"modifyId": 2794,
"modifyName": "wxtest1",
"modifyTime": 1462954765,
"orderBy": 122,
"status": 0
"orderBy": 122
},
{
"brandId": 1654,
"brandName": "1",
"createTime": 1462953863,
"creatorId": 2794,
"creatorName": "wxtest1",
"id": 8,
"modifyId": 0,
"modifyTime": 0,
"orderBy": 2,
"status": 0
}
],
"page": 1,
"size": 10,
"total": 4,
"totalPage": 1
},
"md5": "d4d43382e074027624d686bc8b909a93",
"message": "查询品牌热搜词成功"
}
... ...
## 1、根据分类的信息查询当前分类下的商品列表(method=app.search.category,获取品类商品列表)
#### 请求参数
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
| :-- | :-- | :-- | :-- | :-- | :-- |
| method | String | 否 | app.search.category| |请求方法|
| type | String | 否 | “new” ||页面的标签字符串 “new” “price” “discount” |
| limit | int | 否 | 10 ||每页展示条数,默认10条|
| sort | String | 否 | "116,117,115,119,124,122,413,258,173,227,125,118,121,123,114,293" ||查询小分类ID,查多个小类以逗号分隔|
| page | int | 否 | 1 ||当前页|
| yh_channel | String | 否 | "1" ||频道|
| order | String | 否 | "s_t_desc" ||排序信息 |
| p_d | String | 否 | "0.7" ||打折区间,以逗号分隔|
| color | String | 否 | "145" ||颜色ID|
| brand | String | 否 | "125" ||品牌ID|
| shop | String | 否 | "155" ||店铺ID|
| price | String | 否 | "300,600" ||价格区间,以逗号分隔|
| size | String | 否 | "16,17" ||尺寸ID,以逗号分隔|
| msort | String | 否 | "95" ||产品大分类ID|
| misort | String | 否 | "918" ||产品中分类ID|
| standard | String[] | 否 | standard=13&standard=25 ||规格|
| categoryId | String | 否 | "5" ||运营二级分类ID|
| subCategoryId | String | 否 | "45" || 运营三级分类ID|
| gender | String | 否 | "1,3" ||性别,以逗号分隔|
| outlets | int | 否 | 1 ||outlets=1 奥莱商品 outlets=2非奥莱商品|
#### 注意:与以前方式兼容,如果筛选奥莱,只需增加outlets=1的请求参数
### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"filter": {
"brand": [
{
"brand_alif": "L",
"brand_domain": "lhouse",
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2011/06/27/19/01c1514a8a9d3f9bdf34d70c8ec0610870.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "l-house,T恤,休闲裤,包,LPAN,",
"brand_name": "L-HOUSE",
"brand_name_cn": "",
"brand_name_en": "L-HOUSE",
"hot_keyword": "l-house",
"id": 72,
"is_hot": "N"
},
{
"brand_alif": "C",
"brand_domain": "clottee",
"brand_ico": "http://img11.static.yhbimg.com/brandLogo/2015/12/03/15/01de6bf632d371c2d6c5f74c212aa284fb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "明星、潮流、设计、细节、凸显个人的风格",
"brand_name": "CLOTtee",
"brand_name_cn": "",
"brand_name_en": "CLOTtee",
"hot_keyword": "CLOT主理人Edison Chen(陈冠希)和Kevin Poon(潘世亨)以“Essential”为题进",
"id": 518,
"is_hot": "Y"
}
],
"color": [
{
"color_code": "FFFFFF",
"color_id": 1,
"color_name": "白色",
"color_value": ""
},
{
"color_code": "333333",
"color_id": 2,
"color_name": "黑色",
"color_value": ""
},
{
"color_code": "0000fe",
"color_id": 7,
"color_name": "蓝色",
"color_value": ""
}
],
"discount": {
"0.01,0.399": {
"count": 1,
"name": "1~3"
}
},
"gender": {
"1,3": "BOYS",
"2,3": "GIRLS"
},
"group_sort": [
{
"category_id": "18",
"category_name": "上衣",
"node_count": 0,
"parent_id": "2",
"relation_parameter": {
"sort": "227,173,125,258,121,123,119,124,118,122,115,117,114,293,116,413"
},
"sort_ico": "http://img12.static.yhbimg.com/taobaocms/2016/04/25/15/021f6d7c1a73dd5823c6758186ef270611.png",
"sub": [
{
"category_id": "29",
"category_name": "防风外套",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "227"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
},
{
"category_id": "45",
"category_name": "T恤",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "114,293"
},
"sort_ico": ""
}
]
},
{
"category_id": "8",
"category_name": "裤装",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "131,129,346,133,348,130"
},
"sort_ico": "http://img10.static.yhbimg.com/taobaocms/2016/04/18/14/016bd577221e94e560d4686ec51f94a479.jpg",
"sub": [
{
"category_id": "92",
"category_name": "牛仔裤",
"node_count": 0,
"parent_id": "8",
"relation_parameter": {
"sort": "130,114,293"
},
"sort_ico": ""
}
]
}
],
"priceRange": {
"0,139": "¥0-139",
"140,149": "¥140-149",
"150,99999": "¥149以上"
},
"size": [
{
"size_id": 201,
"size_name": "L"
},
{
"size_id": 203,
"size_name": "M"
},
{
"size_id": 207,
"size_name": "S"
},
{
"size_id": 211,
"size_name": "XL"
},
{
"size_id": 216,
"size_name": "XXL"
}
]
},
"page": 1,
"page_total": 1,
"product_list": [
{
"brand_domain": "clottee",
"brand_id": 518,
"brand_name": "CLOTtee",
"cn_alphabet": "CLA503OJ34ChongFengYi",
"default_images": "http://img11.static.yhbimg.com/goodsimg/2015/09/30/08/01d2be5e9d6a18d8958484fede5af853bd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1452654408,
"gender": "1",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "314411",
"images_url": "http://img11.static.yhbimg.com/goodsimg/2015/09/30/08/01d2be5e9d6a18d8958484fede5af853bd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "258548",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 101,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 699,
"max_sort_id": 1,
"middle_sort_id": 226,
"product_id": 239715,
"product_name": "CLOTtee camouflage Printing Coat Tech Jacket",
"product_skn": 51134695,
"sales_num": 2,
"sales_phrase": "",
"sales_price": 139,
"shelve_time": 1452654408,
"small_sort_id": 227,
"status": 1,
"stock_number": 765,
"storage_num": 765,
"tags": [
"is_discount"
],
"vip1_price": 132.04999999999998,
"vip2_price": 125.10000000000001,
"vip3_price": 122.32000000000001,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "lhouse",
"brand_id": 72,
"brand_name": "L-HOUSE",
"cn_alphabet": "LHOUSEA308XiangJiLPANTXu",
"default_images": "http://img13.static.yhbimg.com/goodsimg/2013/05/09/15/023d3a7e390c20c471978c847600399ba8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1395997048,
"gender": "1",
"goods_list": [
{
"color_code": "FFFFFF",
"color_id": "1",
"color_name": "白",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "59474",
"images_url": "http://img13.static.yhbimg.com/goodsimg/2013/05/09/15/023d3a7e390c20c471978c847600399ba8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "Y",
"product_skc": "96567",
"status": "1"
},
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "59475",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2013/05/09/16/0102c226f7faa1274e05cc038dc3c29f9f.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "96568",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 0,
"is_soon_sold_out": "Y",
"is_special": "N",
"market_price": 148,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 38518,
"product_name": "L-HOUSE 相机LPAN T恤",
"product_skn": 51009846,
"sales_num": 65,
"sales_price": 148,
"shelve_time": 1395997048,
"small_sort_id": 114,
"status": 1,
"stock_number": 2,
"storage_num": 2,
"tags": [
"is_soon_sold_out"
],
"vip1_price": 140.6,
"vip2_price": 133.20000000000002,
"vip3_price": 130.24,
"vip_discount_type": 3,
"vip_price": 0
}
],
"standard": [
{
"standard_id": "879",
"standard_name": "袖长",
"sub": [
{
"standard_id": "4817",
"standard_name": "长袖"
}
]
},
{
"standard_id": "878",
"standard_name": "衣长",
"sub": [
{
"standard_id": "4814",
"standard_name": "长款"
}
]
},
{
"standard_id": "876",
"standard_name": "经典款型",
"sub": [
{
"standard_id": "5080",
"standard_name": "冲锋衣"
}
]
},
{
"standard_id": "882",
"standard_name": "厚度",
"sub": [
{
"standard_id": "4822",
"standard_name": "中"
}
]
},
{
"standard_id": "880",
"standard_name": "版型",
"sub": [
{
"standard_id": "4819",
"standard_name": "正常"
}
]
}
],
"total": 2
},
"md5": "2b4aa20d350ff2758d2d70687b788173",
"message": "Category Product List."
}
```
## 2、首页模糊搜索的商品列表,支持按商品skn、品牌搜索或者店铺首页搜索(method=app.search.li,首页品类推荐获取商品列表页)
#### 请求参数
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
| :-- | :-- | :-- | :-- | :-- | :-- |
| method | String | 否 | app.search.li| |请求方法|
| query | String | 否 | ||关键词查询条件|
| limit | int | 否 | 10 ||每页展示条数,默认10条|
| sort | String | 否 | "116,117,115,119,124,122,413,258,173,227,125,118,121,123,114,293" ||查询小分类ID,查多个小类以逗号分隔|
| page | int | 否 | 1 ||当前页|
| yh_channel | String | 否 | "1" ||频道|
| order | String | 否 | "s_t_desc" ||排序信息 |
| p_d | String | 否 | "0.7" ||打折区间,以逗号分隔|
| color | String | 否 | "145" ||颜色ID|
| brand | String | 否 | "125" ||品牌ID|
| shop | String | 否 | "155" ||店铺ID|
| price | String | 否 | "300,600" ||价格区间,以逗号分隔|
| size | String | 否 | "16,17" ||尺寸ID,以逗号分隔|
| msort | String | 否 | "95" ||产品大分类ID|
| misort | String | 否 | "918" ||产品中分类ID|
| promotion | String | 否 | "5" ||促销ID|
| from | String | 否 | "45" || 来源于那个搜索词列表|
| gender | String | 否 | "1,3" ||性别,以逗号分隔|
| outlets | int | 否 | 1 ||outlets=1 奥莱商品 outlets=2非奥莱商品|
#### 注意:与以前方式兼容,如果筛选奥莱,只需增加outlets=1的请求参数
### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"filter": {
"brand": [
{
"brand_alif": "C",
"brand_domain": "cochinillo",
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2012/11/01/19/01a5a5d79177613a31ef894697f59c3c43.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "",
"brand_name": "Cochinillo",
"brand_name_cn": "Cochinillo",
"brand_name_en": "Cochinillo",
"hot_keyword": "",
"id": 323,
"is_hot": "N"
},
{
"brand_alif": "L",
"brand_domain": "lhouse",
"brand_ico": "http://img11.static.yhbimg.com/brandLogo/2011/06/27/19/01c1514a8a9d3f9bdf34d70c8ec0610870.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "l-house,T恤,休闲裤,包,LPAN,",
"brand_name": "L-HOUSE",
"brand_name_cn": "",
"brand_name_en": "L-HOUSE",
"hot_keyword": "l-house",
"id": 72,
"is_hot": "N"
},
{
"brand_alif": "T",
"brand_domain": "tyakasha",
"brand_ico": "http://img13.static.yhbimg.com/brandLogo/2015/12/07/10/02c11ab89b90ad104a080efc17310836a0.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "tyakasha,服装,",
"brand_name": "TYAKASHA",
"brand_name_cn": "塔卡沙",
"brand_name_en": "TYAKASHA",
"hot_keyword": "tyakasha",
"id": 141,
"is_hot": "Y"
},
{
"brand_alif": "P",
"brand_domain": "protest",
"brand_ico": "http://img13.static.yhbimg.com/brandLogo/2015/12/07/11/024f9654dd401202fa5aa93e21ab01056a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "",
"brand_name": "PROTEST博特斯",
"brand_name_cn": "",
"brand_name_en": "PROTEST",
"hot_keyword": "",
"id": 402,
"is_hot": "N"
},
{
"brand_alif": "C",
"brand_domain": "clottee",
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2015/12/03/15/01de6bf632d371c2d6c5f74c212aa284fb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "明星、潮流、设计、细节、凸显个人的风格",
"brand_name": "CLOTtee",
"brand_name_cn": "",
"brand_name_en": "CLOTtee",
"hot_keyword": "CLOT主理人Edison Chen(陈冠希)和Kevin Poon(潘世亨)以“Essential”为题进",
"id": 518,
"is_hot": "Y"
},
{
"brand_alif": "5",
"brand_domain": "5preview",
"brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/11/17/16/02202c3d541b9b0b67aaf32068b32f4884.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "趣味,休闲",
"brand_name": "5 PREVIEW",
"brand_name_cn": "",
"brand_name_en": "5 PREVIEW",
"hot_keyword": "",
"id": 526,
"is_hot": "N"
}
],
"color": [
{
"color_code": "0000fe",
"color_id": 7,
"color_name": "蓝色",
"color_value": ""
},
{
"color_code": "FFFFFF",
"color_id": 1,
"color_name": "白色",
"color_value": ""
},
{
"color_code": "8b5402",
"color_id": 4,
"color_name": "棕色",
"color_value": ""
},
{
"color_code": "#fffff",
"color_id": 15,
"color_name": "彩色",
"color_value": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/0272608508f09e2bf7eb5543bf5cc70d31.png"
},
{
"color_code": "333333",
"color_id": 2,
"color_name": "黑色",
"color_value": ""
},
{
"color_code": "b9b7af",
"color_id": 3,
"color_name": "灰色",
"color_value": ""
},
{
"color_code": "710098",
"color_id": 8,
"color_name": "紫色",
"color_value": ""
}
],
"discount": {
"0.01,0.399": {
"count": 3,
"name": "1~3"
},
"0.4,0.699": {
"count": 1,
"name": "4~6"
}
},
"gender": {
"1,3": "BOYS",
"2,3": "GIRLS"
},
"group_sort": [
{
"category_id": "5",
"category_name": "上衣",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "598"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg",
"sub": [
{
"category_id": "56",
"category_name": "衬衫",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "115"
},
"sort_ico": ""
},
{
"category_id": "29",
"category_name": "防风外套",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "227"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
},
{
"category_id": "42",
"category_name": "毛衣/针织",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "258"
},
"sort_ico": "http://img12.static.yhbimg.com/taobaocms/2015/09/01/14/02d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
},
{
"category_id": "45",
"category_name": "T恤",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "114,293"
},
"sort_ico": ""
},
{
"category_id": "53",
"category_name": "背心",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "117"
},
"sort_ico": ""
}
]
},
{
"category_id": "8",
"category_name": "裤装",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "131,129,346,133,348,130"
},
"sort_ico": "http://img10.static.yhbimg.com/taobaocms/2016/04/18/14/016bd577221e94e560d4686ec51f94a479.jpg",
"sub": [
{
"category_id": "92",
"category_name": "牛仔裤",
"node_count": 0,
"parent_id": "8",
"relation_parameter": {
"sort": "130,114,293"
},
"sort_ico": ""
}
]
}
],
"priceRange": {
"0,149": "¥0-149",
"150,299": "¥150-299",
"300,99999": "¥299以上"
},
"size": [
{
"size_id": 203,
"size_name": "M"
},
{
"size_id": 207,
"size_name": "S"
},
{
"size_id": 199,
"size_name": "F"
},
{
"size_id": 201,
"size_name": "L"
},
{
"size_id": 211,
"size_name": "XL"
},
{
"size_id": 213,
"size_name": "XS"
},
{
"size_id": 216,
"size_name": "XXL"
}
]
},
"page": 1,
"page_total": 1,
"product_list": [
{
"brand_domain": "lhouse",
"brand_id": 72,
"brand_name": "L-HOUSE",
"cn_alphabet": "LHOUSEA308XiangJiLPANTXu",
"default_images": "http://img12.static.yhbimg.com/goodsimg/2013/05/09/15/023d3a7e390c20c471978c847600399ba8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1395997048,
"gender": "1",
"goods_list": [
{
"color_code": "FFFFFF",
"color_id": "1",
"color_name": "白",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "59474",
"images_url": "http://img12.static.yhbimg.com/goodsimg/2013/05/09/15/023d3a7e390c20c471978c847600399ba8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "Y",
"product_skc": "96567",
"status": "1"
},
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "59475",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2013/05/09/16/0102c226f7faa1274e05cc038dc3c29f9f.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "96568",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 0,
"is_soon_sold_out": "Y",
"is_special": "N",
"market_price": 148,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 38518,
"product_name": "L-HOUSE 相机LPAN T恤",
"product_skn": 51009846,
"sales_num": 65,
"sales_price": 148,
"shelve_time": 1395997048,
"small_sort_id": 114,
"status": 1,
"stock_number": 2,
"storage_num": 2,
"tags": [
"is_soon_sold_out"
],
"vip1_price": 140.6,
"vip2_price": 133.20000000000002,
"vip3_price": 130.24,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "tyakasha",
"brand_id": 141,
"brand_name": "TYAKASHA",
"cn_alphabet": "TYAKASHANvKuanDaiZhenZhuErHuanDeAKAMaoYiT15DM6637B",
"default_images": "http://img12.static.yhbimg.com/goodsimg/2015/11/11/03/02d26c7111e3512e259466c07e21d60df9.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1447215936,
"gender": "2",
"goods_list": [
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "377595",
"images_url": "http://img12.static.yhbimg.com/goodsimg/2015/11/11/03/02d26c7111e3512e259466c07e21d60df9.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "293242",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 101,
"is_soon_sold_out": "N",
"is_special": "Y",
"market_price": 678,
"max_sort_id": 1,
"middle_sort_id": 257,
"product_id": 294671,
"product_name": "TYAKASHA 女款戴珍珠耳环的AKA毛衣",
"product_skn": 51165107,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 339,
"shelve_time": 1447215936,
"small_sort_id": 258,
"status": 1,
"stock_number": 423,
"storage_num": 423,
"tags": [],
"vip1_price": 322.05,
"vip2_price": 305.1,
"vip3_price": 298.32,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "cochinillo",
"brand_id": 323,
"brand_name": "Cochinillo",
"cn_alphabet": "COCHINILLO676620030TXuShan",
"edit_time": 0,
"gender": "2",
"goods_list": [
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "藏青",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "58024",
"images_url": "http://img13.static.yhbimg.com/goodsimg/2013/03/27/13/02456cdb599a3dd5109400d1c3838d58a0.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "95108",
"status": "1"
},
{
"color_code": "FFFFFF",
"color_id": "1",
"color_name": "白",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "58025",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2013/03/27/13/01b84e5a6d1c493b8112029c5796bf794b.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "95109",
"status": "1"
},
{
"color_code": "8b5402",
"color_id": "4",
"color_name": "杏色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "58026",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2013/03/27/13/01c5548a1e59b836728672a77b9c98917c.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "Y",
"product_skc": "95110",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 0,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 458,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 37574,
"product_name": "Cochinillo 蕾丝拼接T恤衫",
"product_skn": 51008901,
"sales_num": 5,
"sales_phrase": "5折封顶",
"sales_price": 183,
"shelve_time": 1366248083,
"small_sort_id": 114,
"status": 1,
"stock_number": 5,
"storage_num": 5,
"tags": [
"is_discount"
],
"vip1_price": 173.85,
"vip2_price": 164.70000000000002,
"vip3_price": 161.04,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "cochinillo",
"brand_id": 323,
"brand_name": "Cochinillo",
"cn_alphabet": "COCHINILLO661300110ChenShan",
"default_images": "http://img10.static.yhbimg.com/goodsimg/2012/12/24/11/0171ead672ff178f83cee6dd46112a9fb3.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 0,
"gender": "2",
"goods_list": [
{
"color_code": "FFFFFF",
"color_id": "1",
"color_name": "白",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "43737",
"images_url": "http://img13.static.yhbimg.com/goodsimg/2012/12/24/11/020b3137bc9f8f199ffb2bbc1d3acdab04.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "81171",
"status": "1"
},
{
"color_code": "8b5402",
"color_id": "4",
"color_name": "杏色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "43738",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2012/12/24/11/0171ead672ff178f83cee6dd46112a9fb3.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "Y",
"product_skc": "81172",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 101,
"is_soon_sold_out": "Y",
"is_special": "N",
"market_price": 688,
"max_sort_id": 1,
"middle_sort_id": 12,
"product_id": 29426,
"product_name": "Cochinillo 豹纹雪纺上衣",
"product_skn": 51000729,
"sales_num": 11,
"sales_phrase": "5折封顶",
"sales_price": 275,
"shelve_time": 1358301176,
"small_sort_id": 115,
"status": 1,
"stock_number": 1,
"storage_num": 1,
"tags": [
"is_discount",
"is_soon_sold_out"
],
"vip1_price": 261.25,
"vip2_price": 247.5,
"vip3_price": 242,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "5preview",
"brand_id": 526,
"brand_name": "5 PREVIEW",
"cn_alphabet": "I914_A25",
"default_images": "http://img10.static.yhbimg.com/goodsimg/2015/07/15/08/0151af4dd4ff03297dc92d4ef0a1efd724.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1453952293,
"gender": "2",
"goods_list": [
{
"color_code": "#fffff",
"color_id": "15",
"color_name": "彩色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "267285",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2015/07/15/08/0151af4dd4ff03297dc92d4ef0a1efd724.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "234928",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 0,
"is_soon_sold_out": "Y",
"is_special": "N",
"market_price": 980,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 199467,
"product_name": "5 PREVIEW 图案T恤",
"product_skn": 51114538,
"sales_num": 11,
"sales_phrase": "",
"sales_price": 294,
"shelve_time": 1453952293,
"small_sort_id": 114,
"status": 1,
"stock_number": 1,
"storage_num": 1,
"tags": [
"is_discount",
"is_soon_sold_out"
],
"vip1_price": 279.3,
"vip2_price": 264.6,
"vip3_price": 258.72,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "clottee",
"brand_id": 518,
"brand_name": "CLOTtee",
"cn_alphabet": "CLA503OJ34ChongFengYi",
"default_images": "http://img10.static.yhbimg.com/goodsimg/2015/09/30/08/01d2be5e9d6a18d8958484fede5af853bd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1452654408,
"gender": "1",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "314411",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2015/09/30/08/01d2be5e9d6a18d8958484fede5af853bd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "258548",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 101,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 699,
"max_sort_id": 1,
"middle_sort_id": 226,
"product_id": 239715,
"product_name": "CLOTtee camouflage Printing Coat Tech Jacket",
"product_skn": 51134695,
"sales_num": 2,
"sales_phrase": "",
"sales_price": 139,
"shelve_time": 1452654408,
"small_sort_id": 227,
"status": 1,
"stock_number": 765,
"storage_num": 765,
"tags": [
"is_discount"
],
"vip1_price": 132.04999999999998,
"vip2_price": 125.10000000000001,
"vip3_price": 122.32000000000001,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "protest",
"brand_id": 402,
"brand_name": "PROTEST博特斯",
"cn_alphabet": "PROTEST165521BeiXin",
"default_images": "http://img10.static.yhbimg.com/goodsimg/2013/09/05/11/013fd21b367badee4c101362d58131df95.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1441689353,
"gender": "2",
"goods_list": [
{
"color_code": "710098",
"color_id": "8",
"color_name": "紫",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "74891",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2013/09/05/11/013fd21b367badee4c101362d58131df95.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "Y",
"product_skc": "111991",
"status": "1"
},
{
"color_code": "b9b7af",
"color_id": "3",
"color_name": "灰",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "74892",
"images_url": "http://img12.static.yhbimg.com/goodsimg/2013/09/04/14/02735f6597cdb30754a2af076587db12e9.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "111992",
"status": "1"
},
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "74893",
"images_url": "http://img12.static.yhbimg.com/goodsimg/2013/09/06/11/02d02d3702690b164f268d64a81ad247ee.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "111993",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 0,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 349,
"max_sort_id": 1,
"middle_sort_id": 14,
"product_id": 49470,
"product_name": "PROTEST博特斯 女款针织连帽背心",
"product_skn": 51020802,
"sales_num": 1,
"sales_price": 69,
"shelve_time": 1378368243,
"small_sort_id": 117,
"status": 1,
"stock_number": 27,
"storage_num": 27,
"tags": [
"is_discount"
],
"vip1_price": 65.55,
"vip2_price": 62.1,
"vip3_price": 60.72,
"vip_discount_type": 3,
"vip_price": 0
}
],
"standard": [
{
"standard_id": "789",
"standard_name": "袖长",
"sub": [
{
"standard_id": "4447",
"standard_name": "短袖"
},
{
"standard_id": "4449",
"standard_name": "长袖"
}
]
},
{
"standard_id": "787",
"standard_name": "领型",
"sub": [
{
"standard_id": "4438",
"standard_name": "圆领"
}
]
},
{
"standard_id": "788",
"standard_name": "衣长",
"sub": [
{
"standard_id": "4444",
"standard_name": "短款"
}
]
},
{
"standard_id": "790",
"standard_name": "版型",
"sub": [
{
"standard_id": "4450",
"standard_name": "修身"
},
{
"standard_id": "4451",
"standard_name": "正常"
}
]
},
{
"standard_id": "791",
"standard_name": "厚度",
"sub": [
{
"standard_id": "4453",
"standard_name": "薄"
}
]
}
],
"total": 7
},
"md5": "253e1f00dc682921e838fed19cc5974e",
"message": "Search List."
}
```
## 3、 查询所有的分类列表(method=app.sort.get 品类商品列表页,获取运营品类列表)
#### 请求参数
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
| :-- | :-- | :-- | :-- | :-- | :-- |
| method | String | 否 | app.sort.get| |请求方法|
### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"boy": [
{
"category_id": "5",
"category_name": "上衣",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "114,293,116,117,115,119,124,122,413,258,173,227,125,118,121,123"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "45",
"category_name": "T恤",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "114,293"
},
"sort_ico": ""
},
{
"category_id": "56",
"category_name": "衬衫",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "115"
},
"sort_ico": ""
},
{
"category_id": "48",
"category_name": "POLO",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "116"
},
"sort_ico": ""
},
{
"category_id": "53",
"category_name": "背心",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "117"
},
"sort_ico": ""
},
{
"category_id": "66",
"category_name": "西装",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "122"
},
"sort_ico": ""
},
{
"category_id": "61",
"category_name": "卫衣",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "119"
},
"sort_ico": ""
},
{
"category_id": "72",
"category_name": "夹克",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "124"
},
"sort_ico": ""
},
{
"category_id": "201",
"category_name": "毛衣/针织",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "258"
},
"sort_ico": ""
},
{
"category_id": "213",
"category_name": "羽绒服",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "121"
},
"sort_ico": ""
},
{
"category_id": "211",
"category_name": "棉衣",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "123"
},
"sort_ico": ""
},
{
"category_id": "203",
"category_name": "大衣/风衣",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "125"
},
"sort_ico": ""
},
{
"category_id": "205",
"category_name": "皮衣",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "173"
},
"sort_ico": ""
},
{
"category_id": "207",
"category_name": "防风外套",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "227"
},
"sort_ico": ""
},
{
"category_id": "209",
"category_name": "马甲",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "118"
},
"sort_ico": ""
},
{
"category_id": "78",
"category_name": "套装",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "413"
},
"sort_ico": ""
}
]
},
{
"category_id": "8",
"category_name": "裤装",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "129"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/019b1a20d4cf319e0e8035cacf2d1d231f.jpg?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "90",
"category_name": "休闲裤",
"node_count": 0,
"parent_id": "8",
"relation_parameter": {
"sort": "129"
},
"sort_ico": ""
},
{
"category_id": "92",
"category_name": "牛仔裤",
"node_count": 0,
"parent_id": "8",
"relation_parameter": {
"sort": "130"
},
"sort_ico": ""
},
{
"category_id": "86",
"category_name": "短裤",
"node_count": 0,
"parent_id": "8",
"relation_parameter": {
"sort": "131"
},
"sort_ico": ""
},
{
"category_id": "98",
"category_name": "运动裤",
"node_count": 0,
"parent_id": "8",
"relation_parameter": {
"sort": "346"
},
"sort_ico": ""
},
{
"category_id": "100",
"category_name": "打底裤/紧身裤",
"node_count": 0,
"parent_id": "8",
"relation_parameter": {
"sort": "133"
},
"sort_ico": ""
},
{
"category_id": "102",
"category_name": "西裤",
"node_count": 0,
"parent_id": "8",
"relation_parameter": {
"sort": "348"
},
"sort_ico": ""
}
]
},
{
"category_id": "11",
"category_name": "鞋靴",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "147,149,148,151,231"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01a4c4324531f3e0c857e5605410110baa.jpg?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "107",
"category_name": "休闲/运动鞋",
"node_count": 0,
"parent_id": "11",
"relation_parameter": {
"sort": "147"
},
"sort_ico": ""
},
{
"category_id": "119",
"category_name": "靴子",
"node_count": 0,
"parent_id": "11",
"relation_parameter": {
"sort": "148"
},
"sort_ico": ""
},
{
"category_id": "123",
"category_name": "时装鞋",
"node_count": 0,
"parent_id": "11",
"relation_parameter": {
"sort": "151"
},
"sort_ico": ""
},
{
"category_id": "113",
"category_name": "凉鞋/凉拖",
"node_count": 0,
"parent_id": "11",
"relation_parameter": {
"sort": "149"
},
"sort_ico": ""
},
{
"category_id": "126",
"category_name": "保养护理",
"node_count": 0,
"parent_id": "11",
"relation_parameter": {
"sort": "231"
},
"sort_ico": ""
}
]
},
{
"category_id": "14",
"category_name": "包类",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "152,153,196,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,197"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/0155e4ec81db538c58a52f3066e396aac5.jpg?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "136",
"category_name": "双肩包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "152"
},
"sort_ico": ""
},
{
"category_id": "142",
"category_name": "手拎包/单肩包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "153,196,195,197"
},
"sort_ico": ""
},
{
"category_id": "147",
"category_name": "钱包/卡包/手包/钥匙包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "238,239,240,349"
},
"sort_ico": ""
},
{
"category_id": "150",
"category_name": "腰包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "157"
},
"sort_ico": ""
},
{
"category_id": "156",
"category_name": "邮差包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "342"
},
"sort_ico": ""
},
{
"category_id": "160",
"category_name": "电脑包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "156"
},
"sort_ico": ""
},
{
"category_id": "163",
"category_name": "储物包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "161,300"
},
"sort_ico": ""
},
{
"category_id": "165",
"category_name": "环保包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "160"
},
"sort_ico": ""
},
{
"category_id": "168",
"category_name": "包配",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "233"
},
"sort_ico": ""
},
{
"category_id": "169",
"category_name": "tote包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "341"
},
"sort_ico": ""
},
{
"category_id": "170",
"category_name": "旅行包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "340"
},
"sort_ico": ""
},
{
"category_id": "171",
"category_name": "旅行箱",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "210"
},
"sort_ico": ""
},
{
"category_id": "172",
"category_name": "mini包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "351"
},
"sort_ico": ""
},
{
"category_id": "173",
"category_name": "剑桥包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "339"
},
"sort_ico": ""
}
]
},
{
"category_id": "17",
"category_name": "服配",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,320,164,317,295,321"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01101f43a49ac92594f51ca543dd691096.jpg?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "177",
"category_name": "太阳镜/眼镜",
"node_count": 0,
"parent_id": "17",
"relation_parameter": {
"sort": "186,235"
},
"sort_ico": ""
},
{
"category_id": "178",
"category_name": "帽子",
"node_count": 0,
"parent_id": "17",
"relation_parameter": {
"sort": "163,224,322,323,324,325,326,327,328,329,330,331"
},
"sort_ico": ""
},
{
"category_id": "179",
"category_name": "首饰",
"node_count": 0,
"parent_id": "17",
"relation_parameter": {
"sort": "72,74,75,76"
},
"sort_ico": ""
},
{
"category_id": "180",
"category_name": "袜子",
"node_count": 0,
"parent_id": "17",
"relation_parameter": {
"sort": "142"
},
"sort_ico": ""
},
{
"category_id": "181",
"category_name": "配饰",
"node_count": 0,
"parent_id": "17",
"relation_parameter": {
"sort": "77,78,79,80,199,213,217,218,234,303,305,306,307,334"
},
"sort_ico": ""
},
{
"category_id": "182",
"category_name": "手表",
"node_count": 0,
"parent_id": "17",
"relation_parameter": {
"sort": "162"
},
"sort_ico": ""
},
{
"category_id": "183",
"category_name": "围巾",
"node_count": 0,
"parent_id": "17",
"relation_parameter": {
"sort": "316"
},
"sort_ico": ""
},
{
"category_id": "186",
"category_name": "手帕",
"node_count": 0,
"parent_id": "17",
"relation_parameter": {
"sort": "320"
},
"sort_ico": ""
},
{
"category_id": "184",
"category_name": "丝巾",
"node_count": 0,
"parent_id": "17",
"relation_parameter": {
"sort": "321"
},
"sort_ico": ""
},
{
"category_id": "187",
"category_name": "手套",
"node_count": 0,
"parent_id": "17",
"relation_parameter": {
"sort": "164"
},
"sort_ico": ""
},
{
"category_id": "188",
"category_name": "披肩",
"node_count": 0,
"parent_id": "17",
"relation_parameter": {
"sort": "317"
},
"sort_ico": ""
}
]
},
{
"category_id": "19",
"category_name": "内衣/家居服",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "311,357,359"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/0147953ebb2eab3bbfc55d1e8621f9350f.jpg?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "189",
"category_name": "内裤",
"node_count": 0,
"parent_id": "19",
"relation_parameter": {
"sort": "311"
},
"sort_ico": ""
},
{
"category_id": "190",
"category_name": "家居服",
"node_count": 0,
"parent_id": "19",
"relation_parameter": {
"sort": "357"
},
"sort_ico": ""
}
]
},
{
"category_id": "24",
"category_name": "美妆/个护",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "263,260,264,261,352"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/12/30/07/01e10d7a82f4a9a2a6ea0064b8c6e76cac.png?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "193",
"category_name": "香水",
"node_count": 0,
"parent_id": "24",
"relation_parameter": {
"sort": "263"
},
"sort_ico": ""
},
{
"category_id": "217",
"category_name": "面部护理",
"node_count": 0,
"parent_id": "24",
"relation_parameter": {
"sort": "260"
},
"sort_ico": ""
},
{
"category_id": "219",
"category_name": "个人护理",
"node_count": 0,
"parent_id": "24",
"relation_parameter": {
"sort": "264"
},
"sort_ico": ""
},
{
"category_id": "221",
"category_name": "彩妆",
"node_count": 0,
"parent_id": "24",
"relation_parameter": {
"sort": "261"
},
"sort_ico": ""
},
{
"category_id": "223",
"category_name": "纹身贴",
"node_count": 0,
"parent_id": "24",
"relation_parameter": {
"sort": "352"
},
"sort_ico": ""
}
]
}
],
"girl": [
{
"category_id": "18",
"category_name": "上衣",
"node_count": 0,
"parent_id": "2",
"relation_parameter": {
"sort": "227,173,125,258,121,123,119,124,118,122,115,117,114,293,116,413"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "70",
"category_name": "T恤",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "114,293"
},
"sort_ico": ""
},
{
"category_id": "65",
"category_name": "衬衫",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "115"
},
"sort_ico": ""
},
{
"category_id": "54",
"category_name": "卫衣",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "119"
},
"sort_ico": ""
},
{
"category_id": "55",
"category_name": "夹克",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "124"
},
"sort_ico": ""
},
{
"category_id": "22",
"category_name": "大衣/风衣",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "125"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
},
{
"category_id": "42",
"category_name": "毛衣/针织",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "258"
},
"sort_ico": "http://img12.static.yhbimg.com/taobaocms/2015/09/01/14/02d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
},
{
"category_id": "35",
"category_name": "皮衣",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "173"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
},
{
"category_id": "68",
"category_name": "背心",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "117"
},
"sort_ico": ""
},
{
"category_id": "75",
"category_name": "POLO",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "116"
},
"sort_ico": ""
},
{
"category_id": "58",
"category_name": "马甲",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "118"
},
"sort_ico": ""
},
{
"category_id": "63",
"category_name": "西装",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "122"
},
"sort_ico": ""
},
{
"category_id": "74",
"category_name": "套装",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "413"
},
"sort_ico": ""
},
{
"category_id": "29",
"category_name": "防风外套",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "227"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
}
]
},
{
"category_id": "25",
"category_name": "裤装",
"node_count": 0,
"parent_id": "2",
"relation_parameter": {
"sort": "348,346,131,133,129,130"
},
"sort_ico": "http://img12.static.yhbimg.com/taobaocms/2015/09/01/14/029b1a20d4cf319e0e8035cacf2d1d231f.jpg?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "80",
"category_name": "休闲裤",
"node_count": 0,
"parent_id": "25",
"relation_parameter": {
"sort": "129"
},
"sort_ico": ""
},
{
"category_id": "82",
"category_name": "牛仔裤",
"node_count": 0,
"parent_id": "25",
"relation_parameter": {
"sort": "130"
},
"sort_ico": ""
},
{
"category_id": "88",
"category_name": "运动裤",
"node_count": 0,
"parent_id": "25",
"relation_parameter": {
"sort": "346"
},
"sort_ico": ""
},
{
"category_id": "96",
"category_name": "打底裤/紧身裤",
"node_count": 0,
"parent_id": "25",
"relation_parameter": {
"sort": "133"
},
"sort_ico": ""
},
{
"category_id": "93",
"category_name": "短裤",
"node_count": 0,
"parent_id": "25",
"relation_parameter": {
"sort": "131"
},
"sort_ico": ""
},
{
"category_id": "81",
"category_name": "西裤",
"node_count": 0,
"parent_id": "25",
"relation_parameter": {
"sort": "348"
},
"sort_ico": ""
}
]
},
{
"category_id": "31",
"category_name": "裙装",
"node_count": 0,
"parent_id": "2",
"relation_parameter": {
"sort": "134,135"
},
"sort_ico": "http://img12.static.yhbimg.com/taobaocms/2015/09/01/14/0296101c1d5d176ce2b03a409014307516.jpg?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "83",
"category_name": "连衣裙",
"node_count": 0,
"parent_id": "31",
"relation_parameter": {
"sort": "134"
},
"sort_ico": ""
},
{
"category_id": "94",
"category_name": "半身裙",
"node_count": 0,
"parent_id": "31",
"relation_parameter": {
"sort": "135"
},
"sort_ico": ""
}
]
},
{
"category_id": "52",
"category_name": "鞋靴",
"node_count": 0,
"parent_id": "2",
"relation_parameter": {
"sort": "147,149,148,151,231"
},
"sort_ico": "http://img12.static.yhbimg.com/taobaocms/2015/09/01/14/02a4c4324531f3e0c857e5605410110baa.jpg?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "143",
"category_name": "休闲/运动鞋",
"node_count": 0,
"parent_id": "52",
"relation_parameter": {
"sort": "147"
},
"sort_ico": ""
},
{
"category_id": "135",
"category_name": "靴子",
"node_count": 0,
"parent_id": "52",
"relation_parameter": {
"sort": "148"
},
"sort_ico": ""
},
{
"category_id": "129",
"category_name": "时装鞋",
"node_count": 0,
"parent_id": "52",
"relation_parameter": {
"sort": "151"
},
"sort_ico": ""
},
{
"category_id": "141",
"category_name": "凉鞋/凉拖",
"node_count": 0,
"parent_id": "52",
"relation_parameter": {
"sort": "149"
},
"sort_ico": ""
},
{
"category_id": "149",
"category_name": "保养护理",
"node_count": 0,
"parent_id": "52",
"relation_parameter": {
"sort": "231"
},
"sort_ico": ""
}
]
},
{
"category_id": "59",
"category_name": "包类",
"node_count": 0,
"parent_id": "2",
"relation_parameter": {
"sort": "152,153,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,196,197"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/0155e4ec81db538c58a52f3066e396aac5.jpg?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "174",
"category_name": "双肩包",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "152"
},
"sort_ico": ""
},
{
"category_id": "176",
"category_name": "手拎包/单肩包",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "153,195,196,197"
},
"sort_ico": ""
},
{
"category_id": "194",
"category_name": "钱包/卡包/手包/钥匙包",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "238,239,240,349"
},
"sort_ico": ""
},
{
"category_id": "167",
"category_name": "腰包",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "157"
},
"sort_ico": ""
},
{
"category_id": "164",
"category_name": "邮差包",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "342"
},
"sort_ico": ""
},
{
"category_id": "200",
"category_name": "电脑包",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "156"
},
"sort_ico": ""
},
{
"category_id": "166",
"category_name": "储物包",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "161,300"
},
"sort_ico": ""
},
{
"category_id": "199",
"category_name": "环保包",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "160"
},
"sort_ico": ""
},
{
"category_id": "175",
"category_name": "包配",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "233"
},
"sort_ico": ""
},
{
"category_id": "198",
"category_name": "tote包",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "341"
},
"sort_ico": ""
},
{
"category_id": "197",
"category_name": "旅行包",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "340"
},
"sort_ico": ""
},
{
"category_id": "196",
"category_name": "旅行箱",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "210"
},
"sort_ico": ""
},
{
"category_id": "191",
"category_name": "剑桥包",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "339"
},
"sort_ico": ""
},
{
"category_id": "195",
"category_name": "mini 包",
"node_count": 0,
"parent_id": "59",
"relation_parameter": {
"sort": "351"
},
"sort_ico": ""
}
]
},
"md5": "cd297283cf7794899d55453fffd76dc6",
"message": "category List."
}
```
## 4、商品详情接口(method=app.product.data)
#### 参看: http://git.dev.yoho.cn/yoho-documents/api-interfaces/blob/master/%E5%95%86%E5%93%81%E5%88%97%E8%A1%A8/product.md
\ No newline at end of file
... ...
... ... @@ -4,11 +4,11 @@ method=app.activity.get
### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|id|Integer|是|1|null|活动id 为空表示查询全部活动|
|sort|String|否|2|null|活动类型|
|platform|String|否|2|null|活动平台|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
| :------- | ------: | ---: | ---: | ---: | ------------------: |
| id | Integer | 是 | 1 | null | 活动id 为空表示查询全部活动 |
| sort | String | 否 | 2 | null | 活动类型(1--奥莱,2--sale) |
| platform | String | 否 | 2 | null | 活动平台 |
### 返回示例
... ... @@ -34,26 +34,73 @@ method=app.activity.get
}
```
## sale商品列表
## 奥莱活动列表接口(app.outlets.activityGet)
method=app.outlets.activityGet
### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
| :--------- | ------: | ---: | ---: | ---: | --------------------------------: |
| id | Integer | 是 | 1 | null | 活动id 为空表示查询全部活动 |
| platform | String | 否 | 2 | null | 活动平台 1--WEB,2--APP,3--WAP,4--IPAD |
| size | int | 是 | 10 | null | 查询数量,默认查询全部 |
| yh_channel | String | 是 | 10 | null | 频道,男首女首的那个(1,2,3,4) |
| type | int | 是 | 0 | 0 | 0 活动列表,1 限时嗨购 2 即将结束 3.即将上线 |
1. 奥莱活动列表:所有的正在进行的(默认10个)
2. 奥莱限时嗨购:正在进行的活动结束时间大于24小时的 (全部)
3. 奥莱即将结束:结束时间小于24小时的正在进行的活动 (全部)
4. 奥莱即将上线:活动即将在未来 24 小时内开始的活动 (全部)
### 返回示例
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"cover_url": "http://img11.static.yhbimg.com/activity/2016/03/21/10/01169fd459663e35efd16caa082b04a8ee.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"create_time": 1458527134,
"end_time": 1545926700,
"id": 111,
"logo_url": "http://img11.static.yhbimg.com/activity/2016/03/21/10/014af81f397544f76ede1ad6cf189c85fd.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"platform": "2",
"product_pool_id": 47,
"promotion_name": "",
"sort": "2",
"start_time": 1458432000,
"title": "SYJ-21号十四点过期",
"web_url": "http://img13.static.yhbimg.com/activity/2016/03/21/10/0282dbbc49c65e5d6fa922e40d8fe3d473.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"yh_channel": "1"
}
],
"md5": "916b270abe0fd72796b8ec378820952d",
"message": "query activity List successed."
}
```
## sale商品列表(app.search.sales)
method=app.search.sales
### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|p_d|String|是|1|null|折扣|
|yhChannel|String|是|2|null|频道|
|limit|Integer|是|10|null|显示数量|
|order|String|是|s_t_desc|null|排序|
|page|Integer|是|1|null|分页|
|gender|String|是|1|null|性别|
|sort|String|是|1|null|分类|
|brand|String|是|111|null|品牌|
|color|String|是|1|null|颜色|
|size|String|是|1|null|尺码|
|saleType|String|是|1|null|1表示断码区,2表示会员专区,3 折扣专区,4表示奥莱|
|breakSize|String|是|1|null|当为断码区的时候,ios调接口不好处理,传此字段再统一处理|
|breakSort|String|是|1|null|当为断码区的时候,ios调接口不好处理,传此字段再统一处理|
|productPool|String|是|1|null|商品池|
|price|String|是|1|null|价格|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
| :---------- | ------: | ---: | -------: | ---: | ----------------------------: |
| p_d | String | 是 | 1 | null | 折扣 |
| yhChannel | String | 是 | 2 | null | 频道 |
| limit | Integer | 是 | 10 | null | 显示数量 |
| order | String | 是 | s_t_desc | null | 排序 |
| page | Integer | 是 | 1 | null | 分页 |
| gender | String | 是 | 1 | null | 性别 |
| sort | String | 是 | 1 | null | 分类 |
| brand | String | 是 | 111 | null | 品牌 |
| color | String | 是 | 1 | null | 颜色 |
| size | String | 是 | 1 | null | 尺码 |
| saleType | String | 是 | 1 | null | 1表示断码区,2表示会员专区,3 折扣专区,4表示奥莱 |
| breakSize | String | 是 | 1 | null | 当为断码区的时候,ios调接口不好处理,传此字段再统一处理 |
| breakSort | String | 是 | 1 | null | 当为断码区的时候,ios调接口不好处理,传此字段再统一处理 |
| productPool | String | 是 | 1 | null | 商品池 |
| price | String | 是 | 1 | null | 价格 |
### 返回示例
... ... @@ -237,9 +284,9 @@ method=app.sale.getBreakingSort
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|yh_channel|String|否|1|null|频道|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
| :--------- | -----: | ---: | ---: | ---: | ---: |
| yh_channel | String | 否 | 1 | null | 频道 |
### 返回示例
... ...
... ... @@ -30,18 +30,39 @@ code为200即为成功,否则是失败。
"data": {
"account": "zhiyuan",
"pid": "2793",
"session_key": "92c68582f7f95a883d304acf95d719e5",
"session_key": "1711be37848c19d4b3f287a988f03012",
"shops": [
"T.U.K",
"【测试】品牌供应商关系",
"JNBY",
"jnby by JNBY",
"速写CROQUIS",
"less",
"LALABOBO"
{
"shopName": "T.U.K",
"shopsId": 17
},
{
"shopName": "【测试】品牌供应商关系",
"shopsId": 19
},
{
"shopName": "JNBY",
"shopsId": 20
},
{
"shopName": "jnby by JNBY",
"shopsId": 21
},
{
"shopName": "速写CROQUIS",
"shopsId": 22
},
{
"shopName": "less",
"shopsId": 23
},
{
"shopName": "LALABOBO",
"shopsId": 24
}
]
},
"md5": "f694c2e2e04309d5ec28fe68d4e2b71b",
"md5": "fd959dd27908c26b502a7edaa6b16ad6",
"message": "登录成功"
}
```
... ... @@ -144,4 +165,212 @@ code为200即为成功,否则是失败。
"code": 426,
"message": "新密码不一致"
}
```
## 3、商家端,关于我们,检查客户的版本##
商家端登录(method=app.shops.checkAppVersion)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway?method=app.shops.checkAppVersion&app_version=4.4.0&client_secret=iphone
### 响应(data里所有的字段返回都是string类型)
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"lastVersion": false,
"url": "*****"
},
"md5": "bef3fa7caea42395244190354fff3761",
"message": "操作成功"
}
}
```
## 4、商家端,获取站内信列表##
商家端,获取站内信列表(method=app.shopInbox.getList)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|shopsId|String|否|2793||店铺id|
注意,通用的头部没有列出。
请求示例
http://127.0.0.1:8081/gateway/?method=app.shopInbox.getList&shopsId=123&type=1
### 响应(data里所有的字段返回都是string类型)
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"list": [
{
"content": "大家好,最新版的商家端app已经上线,敬请更新潮店宝4.4.0版本。",
"createTime": 1464241919,
"id": 49068,
"isDel": "N",
"isRead": "N",
"shopsid": 123,
"title": "【公告】商家端app上线",
"type": "1"
}
]
},
"md5": "e280b0c02a41ef2b01fc8e39f18d2087",
"message": "操作成功"
}
}
```
## 5、获取消息的数量, 根据is_read条件过滤.##
获取消息的数量, 根据is_read条件过滤.(method=app.shopInbox.getShopInboxTotal)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|shopsId|String|否|2793||店铺id|
|isRead|String|是|Y,N||是否已读|
注意,通用的头部没有列出。
请求示例
http://127.0.0.1:8081/gateway/?method=app.shopInbox.getShopInboxTotal&shopsId=123&isRead=N
### 响应(data里所有的字段返回都是string类型)
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
{
"alg": "SALT_MD5",
"code": 200,
"data": 1,
"md5": "2c1f3cf90a65af787e96f80a73058912",
"message": "操作成功"
}
}
```
## 6、批量设置为已读.##
获取消息的数量, 根据is_read条件过滤.(method=app.shopInbox.getShopInboxTotal)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|shopsId|String|否|2793||店铺id|
|ids|String|否|49068,49070|||
注意,通用的头部没有列出。
请求示例
http://127.0.0.1:8081/gateway/?method=app.shopInbox.batchSetIsRead&shopsId=123&ids=49068
### 响应(data里所有的字段返回都是string类型)
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"code": "200",
"data": [],
"message": "success"
},
"md5": "b51ee4b85429bc5ea4a98cd75428f2c4",
"message": "操作成功"
}
}
```
## 7、根据shopsID,站内信id删除商家端用户站内信##
根据shopsID,站内信id删除商家端用户站内信.(method=app.shopInbox.delShopInbox)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|shopsId|String|否|2793||店铺id|
|ids|String|否|49068,49070|||
注意,通用的头部没有列出。
请求示例
http://127.0.0.1:8081/gateway/?method=app.shopInbox.delShopInbox&shopsId=123&ids=49068
### 响应(data里所有的字段返回都是string类型)
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"code": "200",
"data": [
{
"id": "49068"
}
],
"message": "success"
},
"md5": "d925151adb0f4adac9626663cfd74238",
"message": "操作成功"
}
}
```
\ No newline at end of file
... ...
## 1、查询销售统计报表##
查询销售统计报表(method=app.shops.sales)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|:-------| -----:|-----:|-----:|----:|
|page|int|是|2|第几页|
|size|int|是|10|每页条数|
|type|int|否|1|1 日 2 周 3 月|
|reqTime|int|是|20160521|日报 月报 日期|
|beginTime|string|是|20160521|周报:开始日期|
|endTime|string|是|20160527|周报:结束日期|
|productSkn|long|是|1222|skn|
|productSkc|long|是|1222|skc|
|productSku|long|是|1222|sku|
|factoryCode|string|是|234234|出厂编号|
|sortId|int|是|12|是|产品分类 |
|shopId|int|否|17|是|店铺ID |
|brandId|int|否|17|是|品牌 |
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway?method=app.shops.sales
## 请求样例数据
```json
{
"page": 1,
"size": 2
}
```
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977123.6,
"allAmountRate": 0,
"allNumber": 14749,
"allNumberRate": 0,
"lastAllAmount": 2977323.78,
"lastAllNumber": 14746
},
"list": [
{
"allAmounts": 2970434.16,
"allNums": 14731,
"dateId": "20160518"
},
{
"allAmounts": 295.04,
"allNums": 4,
"dateId": "20160525"
}
],
"page": 1,
"size": 1,
"total": 1,
"totalPage": 1
},
"md5": "6bed08aeaa2b44e6238f889d007c358d",
"message": "getOrdersGoodsRptForApi result"
}
```
```json
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
}
```
## 2、查询退货统计报表##
查询退货统计报表(method=app.shops.refund)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|:-------| -----:|-----:|-----:|----:|
|page|int||是|2|第几页|
|size|int|是|10|每页条数|
|type|int|否|1|1 日 2 周 3 月|
|reqTime|string|是|20150306|日报 月报 日期|
|beginTime|string|是|20150306|周报:开始日期|
|endTime|string|是|20150308|周报:结束日期|
|productSkn|int|是|1222|skn|
|productSkc|int|是|1222|skc|
|productSku|int|是|1222|sku|
|factoryCode|string|是|234234|出厂编号|
|sortId|int|是|12|产品分类 |
|shopId|int|否|17|是|店铺ID |
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway?method=app.shops.refund
## 请求样例数据
```json
{
"page": 1,
"size": 2
}
```
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,
"allAmountRate": 2977817.56,
"allNumber": 14747,
"allNumberRate": 14746
},
"list": [
{
"brandId": 144,
"brandName": "VANS",
"buyNumber": 1,
"colorId": 2,
"colorName": "黑色",
"dateId": 20160518,
"factoryCode": "VN0004PA1861",
"goodsName": "VANS Sk8-Hi Lite 超轻来袭 ",
"imageUrl": "",
"maxSortId": 6,
"maxSortName": "鞋靴",
"middleSortId": 44,
"middleSortName": "休闲/运动鞋",
"orderAmount": 665,
"orderCode": 1605008704,
"productSkc": 371718,
"productSkn": 51227423,
"productSku": 1159909,
"retailPrice": 665,
"salesPrice": 665,
"shopName": "",
"sizeId": 125,
"sizeName": "42码",
"smallSortId": 147,
"smallSortName": "休闲/运动鞋"
}
],
"page": 1,
"size": 10,
"total": 1,
"totalPage": 1
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
}
```
```json
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
}
```
## 3、查询进库统计报表##
查询进库统计报表(method=app.shops.storagein)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|:-------| -----:|-----:|-----:|----:|
|page|int||是|2|第几页|
|size|int|是|10|每页条数|
|type|int|是|1|1 日 2 周 3 月|
|beginTime|string|是|20150306|周报:开始日期|
|endTime|string|是|20150308|周报:结束日期|
|productSkn|int|是|1222|skn|
|productSkc|int|是|1222|skc|
|productSku|int|是|1222|sku|
|factoryCode|string|是|234234|出厂编号|
|sortId|int|是|12|产品分类 |
|shopId|int|否|17|是|店铺ID |
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway?method=app.shops.storagein
## 请求样例数据
```json
{
"page": 1,
"size": 2
}
```
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,
"allAmountRate": 2977817.56,
"allNumber": 14747,
"allNumberRate": 14746
},
"list": [
{
"brandId": 144,
"brandName": "VANS",
"buyNumber": 1,
"colorId": 2,
"colorName": "黑色",
"dateId": 20160518,
"factoryCode": "VN0004PA1861",
"goodsName": "VANS Sk8-Hi Lite 超轻来袭 ",
"imageUrl": "",
"maxSortId": 6,
"maxSortName": "鞋靴",
"middleSortId": 44,
"middleSortName": "休闲/运动鞋",
"orderAmount": 665,
"orderCode": 1605008704,
"productSkc": 371718,
"productSkn": 51227423,
"productSku": 1159909,
"retailPrice": 665,
"salesPrice": 665,
"shopName": "",
"sizeId": 125,
"sizeName": "42码",
"smallSortId": 147,
"smallSortName": "休闲/运动鞋"
}
],
"page": 1,
"size": 10,
"total": 1,
"totalPage": 1
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
}
```
```json
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
}
```
## 4、查询销售出库统计报表##
查询销售出库统计报表(method=app.shops.storageout)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|:-------| -----:|-----:|-----:|----:|
|page|int||是|2|第几页|
|size|int|是|10|每页条数|
|type|int|是|1|1 日 2 周 3 月|
|beginTime|string|是|20150306|周报:开始日期|
|endTime|string|是|20150308|周报:结束日期|
|productSkn|int|是|1222|skn|
|productSkc|int|是|1222|skc|
|productSku|int|是|1222|sku|
|factoryCode|string|是|234234|出厂编号|
|sortId|int|是|12|产品分类 |
|shopId|int|否|17|是|店铺ID |
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway?method=app.shops.storageout
## 请求样例数据
```json
{
"page": 1,
"size": 2
}
```
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,
"allAmountRate": 2977817.56,
"allNumber": 14747,
"allNumberRate": 14746
},
"list": [
{
"brandId": 144,
"brandName": "VANS",
"buyNumber": 1,
"colorId": 2,
"colorName": "黑色",
"dateId": 20160518,
"factoryCode": "VN0004PA1861",
"goodsName": "VANS Sk8-Hi Lite 超轻来袭 ",
"imageUrl": "",
"maxSortId": 6,
"maxSortName": "鞋靴",
"middleSortId": 44,
"middleSortName": "休闲/运动鞋",
"orderAmount": 665,
"orderCode": 1605008704,
"productSkc": 371718,
"productSkn": 51227423,
"productSku": 1159909,
"retailPrice": 665,
"salesPrice": 665,
"shopName": "",
"sizeId": 125,
"sizeName": "42码",
"smallSortId": 147,
"smallSortName": "休闲/运动鞋"
}
],
"page": 1,
"size": 10,
"total": 1,
"totalPage": 1
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
}
```
```json
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
}
```
## 5、获取店铺的品牌排名,当前等级、排名、上升名词##
获取店铺的品牌排名,当前等级、排名、上升名词(method=app.shops.shopbrandrank)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|:-------| -----:|-----:|-----:|----:|
|brandId|int|否||品牌id|
|dateId |int|否||日期|
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway?method=app.shops.shopbrandrank&brandId=1200&dateId=20160524
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"brandId": 1200,
"brandMainCategory": 2,
"dateId": 20160524,
"rankChange": 5,
"rankLevel": 1,
"rankNow": 15
},
"md5": "64cdf0d30ba9174ddce76ecf71a91ad8",
"message": "shop business overview."
}
}
```
## 6、查询库存列表##
查询库存列表(method=app.shops.storagestatistics)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|:-------| -----:|-----:|-----:|----:|
|productSkn|int|是||商品skn|
|factory_code|string|是||商品厂家编码|
|productSku|int|是||商品sku|
|shopId|int|是||店铺Id|
|brandId|int|是||品牌Id|
|maxSortId|int|是||一级分类Id|
|middleSortId|int|是||二级分类Id|
|smallSortId|int|是||三级分类Id|
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway?method=app.shops.storagestatistics&brandId=11
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"onSaleTotalNum": 1, // 已上架商品数
"outSaleTotalNum": 1, // 已下架商品数
"preSaleTotalNum": 2, // 待上架商品数
"storageTotalMoney": 67.3, // 库存总金额(元)
"storageTotalNum": 47 // 库存总数量
},
"list": [
{
"brandId": 11,
"brandName": "",
"colorId": 0,
"colorName": "",
"dateId": 0,
"goodsName": "",
"imageUrl": "0",
"maxSortId": 0,
"maxSortName": "0",
"middleSortId": 0,
"middleSortName": "",
"productSkc": 0,
"productSkn": 0,
"productSku": 0,
"purchasePrice": 0,
"salesPrice": 0,
"shopId": 0,
"shopName": "",
"sizeId": 0,
"sizeName": "",
"smallSortId": 0,
"smallSortName": "",
"status": "1",
"storageAmount": 33.3,
"storeNums": 11
},
{
"brandId": 11,
"brandName": "",
"colorId": 0,
"colorName": "",
"dateId": 0,
"goodsName": "",
"imageUrl": "0",
"maxSortId": 0,
"maxSortName": "0",
"middleSortId": 0,
"middleSortName": "",
"productSkc": 0,
"productSkn": 0,
"productSku": 0,
"purchasePrice": 0,
"salesPrice": 0,
"shopId": 0,
"shopName": "",
"sizeId": 0,
"sizeName": "",
"smallSortId": 0,
"smallSortName": "",
"status": "2",
"storageAmount": 22,
"storeNums": 22
},
{
"brandId": 11,
"brandName": "",
"colorId": 0,
"colorName": "",
"dateId": 0,
"goodsName": "",
"imageUrl": "0",
"maxSortId": 0,
"maxSortName": "0",
"middleSortId": 0,
"middleSortName": "",
"productSkc": 0,
"productSkn": 0,
"productSku": 0,
"purchasePrice": 0,
"salesPrice": 0,
"shopId": 0,
"shopName": "",
"sizeId": 0,
"sizeName": "",
"smallSortId": 0,
"smallSortName": "",
"status": "3",
"storageAmount": 11,
"storeNums": 13
},
{
"brandId": 11,
"brandName": "",
"colorId": 0,
"colorName": "",
"dateId": 0,
"goodsName": "",
"imageUrl": "0",
"maxSortId": 0,
"maxSortName": "0",
"middleSortId": 0,
"middleSortName": "",
"productSkc": 0,
"productSkn": 0,
"productSku": 0,
"purchasePrice": 0,
"salesPrice": 0,
"shopId": 0,
"shopName": "",
"sizeId": 0,
"sizeName": "",
"smallSortId": 0,
"smallSortName": "",
"status": "2",
"storageAmount": 1,
"storeNums": 1
}
],
"page": 1,
"size": 10,
"total": 4,
"totalPage": 1
},
"md5": "83ccbb2eb14e08c90558b7c00d6c0b8e",
"message": "storage statistics list"
}
}
```
## 7、获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品 金额##
获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品 金额(method=app.shops.shopbusinessoverview)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|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||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|:-------| -----:|-----:|-----:|----:|
|brandId|int|否||品牌id|
|dateId |int|否||日期|
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway?method=app.shops.shopbrandrank&brandId=1200&dateId=20160524
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
``` json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"brandId": 1200,
"brandName": "wss",
"buyNumbers": 100,
"dateId": 20160523,
"orderAmount": 100,
"shopId": 431,
"shopName": "wss"
},
"md5": "1d143fd1d71504f9d7a82121202c4bfc",
"message": "shop business overview."
}
```
... ...
###搜索服务地址:
### 搜索服务地址:
测试环境: 192.168.10.64:8080/yohosearch
... ... @@ -10,8 +10,8 @@
生产环境:x.yohobuy.com/yohosearch
#1. 搜索商品接口
##1.1 请求
# 1. 搜索商品接口
## 1.1 请求
1.1.1 URL格式
[link text]:http://{host}:{port}/yohosearch/search.json?query={searchquery}&order={orderby hot,new}&……
... ...