Authored by xiaofeng.yao@yoho.cn

Merge branch 'master' of git.yoho.cn:yoho-documents/api-interfaces

... ... @@ -82,11 +82,13 @@
"promo_code_discount": 0,
"promo_id": 0,
"province": "山西省",
"street": "xx大街",
"receipt_time": 2,
"receipt_time_type": 0,
"receiver_info": {
"address": "ssddsdsds",
"area_code": "140203",
"street": "xx大街",
"city": "大同市",
"consignee_name": "sssaaassa",
"district": "矿区",
... ...
... ... @@ -220,7 +220,7 @@ code为200即为成功,否则是失败。
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8095/social/?method=app.social.getHomePagePostList&uid=2222222&lastedTime=1467116660000&limit=2&debug=XYZ
http://192.168.102.205:8095/social/?method=app.social.getHomePagePostList&uid=2222222&lastedTime=0&limit=2&debug=XYZ
### 响应
code为200即为成功,否则是失败。
... ... @@ -228,135 +228,183 @@ code为200即为成功,否则是失败。
```json
{
{
"alg": "SALT_MD5",
"code": 200,
"data":
{
"lastedTime": 1508922386060,
"list":
[
{
"authorInfo":
"data": {
"lastedTime": 1516176688370,
"list": [
{
"authorInfo": {
"bgPic": "",
"uid": 21189956
"uid": 123
},
"blocks":
[
"blocks": [
{
"contentData": "http://img11.static.yhbimg.com\yhb-img01/2016/10/25/17/01aa61097d57575eabdd26775b5dc09d2e.jpg?imageView/{mode}/w/{width}/h/{height}",
"contentData": "123123",
"order": 1,
"postsId": 4042,
"size": "334x220",
"templateKey": "image"
"postsId": 108822,
"templateKey": "text"
},
{
"contentData": "http://img10.static.yhbimg.com\yhb-img01/2016/10/25/17/01c39d6d3219ecce8053c12d5bfb11c4b3.jpg?imageView/{mode}/w/{width}/h/{height}",
"contentData": "http://img11.static.yhbimg.com/yhb-img01/2017/02/04/18/01385744720200ad56364517345c2cfab1.jpg?imageMogr2/auto-orient/thumbnail/!{width}x{height}r",
"order": 2,
"postsId": 4042,
"size": "207x220",
"postsId": 108822,
"size": "1024x768",
"templateKey": "image"
},
{
"contentData": "http://img10.static.yhbimg.com\yhb-img01/2016/10/25/17/0179ef13be85b750a64176bb7e8df0c536.jpg?imageView/{mode}/w/{width}/h/{height}",
"contentData": "http://img11.static.yhbimg.com/yhb-img01/2017/02/04/18/0152bd635f35f862aafabb39058e6f85b5.jpg?imageMogr2/auto-orient/thumbnail/!{width}x{height}r",
"order": 3,
"postsId": 4042,
"size": "155x220",
"templateKey": "image"
},
{
"contentData": "http://img11.static.yhbimg.com\yhb-img01/2016/10/25/17/016f4aae224000058db4916497b5bd0ed3.jpg?imageView/{mode}/w/{width}/h/{height}",
"order": 4,
"postsId": 4042,
"size": "220x220",
"postsId": 108822,
"size": "1024x768",
"templateKey": "image"
}
],
"browse": 0,
"comment": 38,
"createTime": 1477386733903,
"forumCode": 10001,
"forumName": "潮流风向",
"comment": 2,
"createTime": 1486203158096,
"forumCode": 10002,
"forumName": "聚焦潮鞋",
"hasPraise": "N",
"id": 4042,
"indexTopTime": 1509016257343,
"isForumTop": 1,
"isHot": 1,
"id": 108822,
"indexTopTime": 1517988262626,
"isForumTop": 0,
"isHot": 0,
"isIndexTop": 1,
"postsTitle": "这是一个主题",
"praise": 0,
"postsTitle": "123123",
"praise": 3,
"revieweState": 0,
"revieweTime": 0,
"status": 0,
"updateTime": 1509507947838
"updateTime": 1486740421615,
"voteInfo": {
"counts": 737,
"deadline": 8,
"hasVoted": "N",
"options": [
{
"image": "http://img11.static.yhbimg.com/yhb-img01/2017/02/10/16/01e864e6c15ac6aeb8e574aacff1b6a977.jpg?imageView/{mode}/w/{width}/h/{height}",
"optionId": 38,
"percent": "16.69%",
"realVoteCount": 0,
"text": "123",
"voteCount": 123
},
{
"image": "http://img10.static.yhbimg.com/yhb-img01/2017/02/09/15/01218a391757ea5891f4a0639f9d61b28d.jpg?imageView/{mode}/w/{width}/h/{height}",
"optionId": 8,
"percent": "61.87%",
"realVoteCount": 0,
"text": "3",
"voteCount": 456
},
{
"image": "http://img11.static.yhbimg.com/yhb-img01/2017/02/09/16/01e3622231e41556c36c7bc329d314f63c.jpg?imageView/{mode}/w/{width}/h/{height}",
"optionId": 18,
"percent": "16.69%",
"realVoteCount": 0,
"text": "232423",
"voteCount": 123
},
{
"image": "http://img10.static.yhbimg.com/yhb-img01/2017/02/07/10/015108d93ca9015af898471e40734544a7.jpg?imageView/{mode}/w/{width}/h/{height}",
"optionId": 6,
"percent": "00.68%",
"realVoteCount": 0,
"text": "12312",
"voteCount": 5
},
{
"image": "http://img11.static.yhbimg.com/yhb-img01/2017/02/09/16/01e81e4d04e858a99e6fc2ca18a4e40c17.jpg?imageView/{mode}/w/{width}/h/{height}",
"optionId": 10,
"percent": "01.36%",
"realVoteCount": 0,
"text": "123",
"voteCount": 10
},
{
"image": "http://img11.static.yhbimg.com/yhb-img01/2017/02/06/14/01d73665940405769ceb830bc5b2e875bb.jpg?imageView/{mode}/w/{width}/h/{height}",
"optionId": 20,
"percent": "01.36%",
"realVoteCount": 0,
"text": "1231asdfasdf",
"voteCount": 10
},
{
"image": "http://img10.static.yhbimg.com/yhb-img01/2017/02/09/16/01478b0ff53ccad477b00e7f4bf0a11ba5.jpg?imageView/{mode}/w/{width}/h/{height}",
"optionId": 12,
"percent": "01.36%",
"realVoteCount": 0,
"text": "3",
"voteCount": 10
}
],
"type": 2
}
},
{
"authorInfo":
{
"bgPic": "http://img11.static.yhbimg.com\social/2016/08/17/22/01f95abc2c5a96bdab382473d2db77ce44.jpg?imageView/{mode}/w/{width}/h/{height}",
"headIcon": "http://head.static.yhbimg.com/yhb-head/2016/08/17/22/044d44e6bb7a5277a3cf454e6e01abcc52.867941.jpg?imageView/{mode}/w/{width}/h/{height}",
"nickName": "",
"signature": "",
"uid": 9701721
"authorInfo": {
"bgPic": "",
"uid": 21191634
},
"blocks":
[
"blocks": [
{
"contentData": "You'd usurer",
"contentData": "吃吧",
"order": 1,
"postsId": 822,
"postsId": 4508,
"templateKey": "text"
},
{
"contentData": "http://img13.static.yhbimg.com\social/2016/07/16/19/02d68d36bd11d3e257b292b2e64c96b94a.jpg?imageView/{mode}/w/{width}/h/{height}",
"order": 2,
"postsId": 822,
"templateKey": "image"
},
{
"contentData": "http://img10.static.yhbimg.com\social/2016/07/16/19/0125022e0d3f4d9f9729fc0088c6ed6511.png?imageView/{mode}/w/{width}/h/{height}",
"order": 3,
"postsId": 822,
"templateKey": "image"
},
{
"contentData": "http://img12.static.yhbimg.com\social/2016/07/16/19/02ceb69d9d576dccdc7fc2dca67d19988b.png?imageView/{mode}/w/{width}/h/{height}",
"order": 4,
"postsId": 822,
"templateKey": "image"
},
{
"contentData": "",
"order": 5,
"postsId": 822,
"templateKey": "image"
}
],
"browse": 0,
"comment": 4,
"createTime": 1468667954679,
"forumCode": 10003,
"forumName": "爱享潮物",
"createTime": 1484640367689,
"forumCode": 10001,
"forumName": "潮流风向",
"hasPraise": "N",
"id": 822,
"indexTopTime": 1508922386060,
"isForumTop": 1,
"isHot": 1,
"id": 4508,
"indexTopTime": 1516176688370,
"isForumTop": 0,
"isHot": 0,
"isIndexTop": 1,
"praise": 11,
"postsTitle": "我去?",
"praise": 9,
"revieweState": 0,
"revieweTime": 0,
"status": 0,
"updateTime": 1508922388636
"updateTime": 1484816373516,
"voteInfo": {
"counts": 0,
"deadline": 11,
"hasVoted": "N",
"options": [
{
"image": "http://img10.static.yhbimg.com/yhb-img01/2017/02/09/15/0148ebc1884367bf388a800bc842b339e0.jpg?imageView/{mode}/w/{width}/h/{height}",
"optionId": 2,
"percent": "0%",
"realVoteCount": 0,
"text": "vote1",
"voteCount": 0
},
{
"image": "http://img11.static.yhbimg.com/yhb-img01/2017/02/09/15/01bbae6e224c5b0018cd4d75c77e53f875.jpg?imageView/{mode}/w/{width}/h/{height}",
"optionId": 4,
"percent": "0%",
"realVoteCount": 0,
"text": "vote2",
"voteCount": 0
}
],
"type": 1
}
}
],
"pageSize": 2,
"total": 51
"total": 69
},
"md5": "7623197d7c4375ffe693de7f96f31b47",
"md5": "eb188c13a8b02e48b86fafc246361fe2",
"message": "社区最热帖子列表"
}
}
```
... ...
... ... @@ -2,6 +2,8 @@
# 目录 #
根据活动获取有几个可预约时间 ActivityConfigController/getAppointTime4Activity
一、潮流课堂、活动:
1、获取未结束活动列表:ActivityConfigController/getActivityNowList
... ... @@ -22,7 +24,7 @@
3、获取所有潮流顾问可预约时间:ActivityConfigController/getAppointDateForTour
4、根据潮流顾问id获取可预约时间:ActivityConfigController/getAppointInfoById
4、根据日期获取可预约时间:ActivityConfigController/getAppointTimeForTour
三、剪发:
... ... @@ -30,6 +32,10 @@
2、根据套餐id获取活动详情:ActivityConfigController/getFrontActivityInfoById
3、获取所有发型师所有套餐可预约日期:ActivityConfigController/getAppointDateForTour
4、根据发型师Id和日期获取可预约时间:ActivityConfigController/getAppointTimeForTour
四、摄影
1、获取套餐列表(同列表接口,不同活动类型入参):ActivityConfigController/getActivityList
... ... @@ -422,7 +428,7 @@ http://172.16.6.207:8080/portal-gateway/ActivityConfigController/getAppointInfoB
http://172.16.6.207:8080/portal-gateway/ActivityConfigController/getActivityList
{
"activityType":5,
"activityType":3,
"storeId":66
}
... ... @@ -504,7 +510,7 @@ http://172.16.6.207:8080/portal-gateway/ActivityConfigController/getActivityList
http://172.16.6.207:8080/portal-gateway/ActivityConfigController/getAppointDateForTour
{
"activityType":5,
"activityType":3,
"storeId":66,
"isFront":1
}
... ... @@ -548,6 +554,48 @@ http://172.16.6.207:8080/portal-gateway/ActivityConfigController/getAppointDateF
}
}
## 4、根据日期获取所有潮流顾问可预约时间点 ##
入口:ActivityConfigController/getAppointTimeForTour
**请求参数**
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
| ---------|:--------:| --------:|-----:|------:|------:|------:|
|activityType |int | 11 |否 | | |活动类型:1-潮流课堂,2-活动,3-潮流顾问,4-摄影套餐,5-发型师套餐|
|storeId |int | 11 |否 | | |门店id|
|isFront |int | 11 |是 |1 | 1 |1|
|dateTime |String | 50 |是 |2016/12/15 | |可预约日期|
**请求示例**
注意,通用的头部没有列出。
http://172.16.6.207:8080/portal-gateway/ActivityConfigController/getAppointTimeForTour
{
"activityType":3,
"storeId":66,
"isFront":1,
"dateTime":"2016/12/15"
}
**响应**
{
"code": 200,
"message": "success",
"data": {
"appointNum": 20,
"isAppointNum": 0,
"timeMap": {
"1481772300": 1,
"1481792400": 1,
"1481794560": 1
}
}
}
## 三、剪发 ##
... ... @@ -718,3 +766,151 @@ code为200即为成功,否则是失败。 响应JSON格式如下所示:
}
## 3、获取发型师所有套餐可预约时间 ##
入口:ActivityConfigController/getAppointDateForTour
**请求参数**
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
| ---------|:--------:| --------:|-----:|------:|------:|------:|
|activityType |int | 11 |否 | | |活动类型:1-潮流课堂,2-活动,3-潮流顾问,4-摄影套餐,5-发型师套餐|
|storeId |int | 11 |否 | | |门店id|
|isFront |int | 11 |是 |1 | 1 |1|
|hairStylistId |int | 11 |否 |1 | 1 |发型师id|
**请求示例**
注意,通用的头部没有列出。
http://172.16.6.207:8080/portal-gateway/ActivityConfigController/getAppointDateForTour
{
"activityType":5,
"storeId":66,
"isFront":1,
"hairStylistId":4
}
**响应**
{
"code": 200,
"message": "success",
"data": {
"2016/12/21": "周三",
"2016/12/22": "周四",
"2016/12/23": "周五",
"2016/12/24": "周六",
"2016/12/27": "周二",
"2016/12/28": "周三",
"2016/12/29": "周四",
"2016/12/14": "周三",
"2016/12/15": "周四",
"2016/12/16": "周五",
"2016/12/17": "周六",
"2016/12/18": "周日",
"2016/12/19": "周一",
"2016/12/20": "周二",
"2016/12/13": "周二",
"2016/12/25": "周日",
"2016/12/26": "周一",
"2016/12/30": "周五",
"2016/12/31": "周六",
"2017/01/01": "周日",
"2017/01/02": "周一",
"2017/01/03": "周二",
"2017/01/04": "周三",
"2017/01/05": "周四",
"2017/01/06": "周五",
"2017/01/07": "周六",
"2017/01/08": "周日",
"2017/01/09": "周一",
"2017/01/10": "周二",
"2017/01/11": "周三"
}
}
## 4、根据日期获取所有潮流顾问可预约时间点 ##
入口:ActivityConfigController/getAppointTimeForTour
**请求参数**
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
| ---------|:--------:| --------:|-----:|------:|------:|------:|
|activityType |int | 11 |否 | | |活动类型:1-潮流课堂,2-活动,3-潮流顾问,4-摄影套餐,5-发型师套餐|
|storeId |int | 11 |否 | | |门店id|
|isFront |int | 11 |是 |1 | 1 |1|
|dateTime |String | 50 |是 |2016/12/15 | |可预约日期|
|hairStylistId |int | 11 |否 |1 | 1 |发型师id|
**请求示例**
注意,通用的头部没有列出。
http://172.16.6.207:8080/portal-gateway/ActivityConfigController/getAppointTimeForTour
{
"activityType":5,
"storeId":66,
"isFront":1,
"dateTime":"2016/12/15",
"hairStylistId":4
}
**响应**
{
"code": 200,
"message": "success",
"data": {
"appointNum": 20,
"isAppointNum": 0,
"timeMap": {
"1481772300": 1,
"1481792400": 1,
"1481794560": 1
}
}
}
## 根据活动获取有几个可预约时间 ##
入口:/ActivityConfigController/getAppointTime4Activity
**请求参数**
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
| ---------|:--------:| --------:|-----:|------:|------:|------:|
|activityType |int | 11 |否 | | |活动类型:1-潮流课堂,2-活动,3-潮流顾问,4-摄影套餐,5-发型师套餐|
|isFront |int | 11 |是 |1 | 1 |1|
|activityId |int | 11 |否 |123 | |活动 id|
**请求示例**
注意,通用的头部没有列出。
http://192.168.102.210:8080/portal-gateway/ActivityConfigController/getAppointTime4Activity?debug=XYZ&isFront=1&activityId=62&activityType=9
说明 :
如果只有一个时间返回时间戳,多个返回空字符串
**响应**
{
"code": 200,
"message": "success",
"data": "1487203200"
}
{
"code": 200,
"message": "success",
"data": ""
}
... ...
... ... @@ -10,6 +10,8 @@
四、根据目录id获取目录信息 :MenuConfigController/getFrontMenuById
五、获取有效的一条潮流之旅信息(潮流之旅首页) :MenuConfigController/getFrontMainTour
##
... ... @@ -290,3 +292,64 @@ code为200即为成功,否则是失败。 响应JSON格式如下所示:
"parentName": null
}
}
##
# 五、获取有效的一条潮流之旅信息(潮流之旅首页) #
入口:MenuConfigController/getFrontMainTour
##
# 请求参数 #
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
| ---------|:--------:| --------:|-----:|------:|------:|------:|
|storeId |int | 11 |否 | | |门店id|
|isFront |int | 1 |是 | | |是否前台表 |
**请求示例**
注意,通用的头部没有列出。
http://192.168.102.210:8080/portal-gateway/MenuConfigController/getFrontMainTour?debug=XYZ&storeId=1&isFront=1
参数含义:
id: 该潮流之旅id;
tourName:潮流之旅名称
isAppointment: 是否需要预约1-需要 2-不需要
tourDetail:图文详情
**响应**
code为200即为成功,否则是失败。 响应JSON格式如下所示:
{
"code": 200,
"message": "success",
"data": {
"page": 1,
"rows": 10,
"sort": null,
"order": "ASC",
"startIndex": 0,
"id": 4,
"tourName": "131321",
"isAppointment": 2,
"tourImage": "http://img10.static.yhbimg.com/yhb-img01/2016/12/20/11/01d98f82db837da5f9d5167e64ae9a5125.jpg",
"price": 11,
"status": 1,
"isDeploy": null,
"createTime": 1482203667,
"updateTime": 1486534709,
"createUserId": 542,
"storeId": 66,
"tourDetail": "<p>fafafa</p>",
"sortNumber": 11,
"activityTimeStr": null,
"menuId": 58
}
}
\ No newline at end of file
... ...
... ... @@ -256,6 +256,8 @@
},
"order_code": "309557854",
"province": "北京市",
"street":"xx大街",
"delivery_area" : "北京市 北京市 朝阳区 xx大街",
"source_order_code": 308550118,
"status": 40,
"statusList": [
... ...
... ... @@ -122,6 +122,7 @@
"area_code": "320115",
"address": "江宁经济技术开发区苏源大道87号(有货物流中心订单组)",
"consignee_name": "测试",
"street": "东山街道"
"county": "江宁区",
"delivery_tpye": 10,
"email": "",
... ... @@ -412,6 +413,7 @@
"area_code": 330225,
"city": "宁波市",
"district": "象山县",
"street": "xx街道"
"email": "canvas220@sina.com",
"mobile": "15258109727",
"order_code": 1607472719,
... ...