|
|
# 线下店资讯 #
|
|
|
|
|
|
# 目录 #
|
|
|
|
|
|
一、新增预约:AppointmentController/addAppointmentRecord
|
|
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
|
|
#一、新增预约#
|
...
|
...
|
@@ -112,3 +106,69 @@ code为200即为成功,否则是失败。 响应JSON格式如下所示: |
|
|
]
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
|
|
#三、获取可预约时间#
|
|
|
|
|
|
|
|
|
入口:AppointmentController/getAppointTime
|
|
|
##
|
|
|
# 请求参数 #
|
|
|
|
|
|
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
|
|
|
| ---------|:--------:| --------:|-----:|------:|------:|------:|
|
|
|
|storeId |int | 11 |否 |66 | |门店id|
|
|
|
|activityId |int | |否 | 38| |活动id,|
|
|
|
|appointType |int | |否 | 4| |预约类型,1-潮流课堂,2-活动,3-潮流顾问,4-摄影套餐,5-发型师套餐|
|
|
|
|dateTime |string | |否 |2016/12/22 | |日期|
|
|
|
|
|
|
|
|
|
|
|
|
**请求示例**
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
http://192.168.102.210:8080/portal-gateway/AppointmentController/getAppointTime?debug=XYZ&activityId=38&appointType=4&dateTime=2016/12/22&storeId=66
|
|
|
|
|
|
参数含义:
|
|
|
|
|
|
appointNum: 可预约数量;
|
|
|
|
|
|
isAppointNum:已经预约数量
|
|
|
|
|
|
timeMap: 可预约时间列表(map类型,key为时间,value为是否可预约:1可预约,2不可预约)
|
|
|
|
|
|
|
|
|
|
|
|
**响应**
|
|
|
|
|
|
code为200即为成功,否则是失败。 响应JSON格式如下所示:
|
|
|
```
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "success",
|
|
|
"data": {
|
|
|
"appointNum": 0,
|
|
|
"isAppointNum": 0,
|
|
|
"timeMap": {
|
|
|
"14:08": 2,
|
|
|
"14:36": 1,
|
|
|
"15:08": 1,
|
|
|
"15:21": 1,
|
|
|
"16:06": 1,
|
|
|
"16:08": 1,
|
|
|
"16:51": 1,
|
|
|
"17:08": 1,
|
|
|
"17:36": 1,
|
|
|
"18:08": 1,
|
|
|
"18:21": 1,
|
|
|
"19:06": 1,
|
|
|
"19:08": 1,
|
|
|
"19:51": 1,
|
|
|
"20:36": 1
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
...
|
...
|
|