adminExperienceAppoint - TimYi/FengHuang GitHub Wiki
请求URL
http://www.ifhzj.com/api/admin/experienceAppoint
说明
体验馆预约管理分分页查询、单个查询、取消预约、处理预约四个接口。
处理预约接口用于后台和用户沟通确定到馆时间之后,在后台录入以便提醒用户。
显示字段
id:id
code:预约编号
user:预约用户
museum:预约的体验馆{id,name,city,pic}
realName:真实姓名
mobile:手机号码
status:预约状态 WAITING,PROCESSING,FINISH,CANCEL
message:后台给用户的留言
appointTime:预约时间
返回示例
{
"result": {
"totalCount": 1,
"totalPages": 1,
"page": 1,
"size": 8,
"result": [
{
"id": "8aac49ea4ebf5c50014ebf5e87ee0000",
"code": "EA010150724MtPa",
"user": {
"id": "8aac49ea4e70816e014e708242ab0000",
"username": "ytm",
"verified": true,
"cnname": "熊小易",
"realName": "易天明",
"ename": "",
"sex": {
"id": "404040e64dd26ab5014dd26ac64e0014",
"name": "女",
"attr": null,
"attr2": null,
"type": "sex"
},
"mobile": "18612444099",
"intro": "",
"email": "",
"qqnum": null,
"qqid": null,
"weixinnum": null,
"weixinid": null,
"birthDay": null,
"bloodType": null,
"constellation": null,
"avatar": {
"id": "8aac49ea4e9b42d4014e9b4b6b800001",
"url": "http://IFHZJ.com/media/2f3d39b3030d4924b853b6f7dbd1bac3.png",
"fileSize": 47084
},
"trade": "",
"address": "",
"expVal": 0,
"integra": 0,
"regTime": "2015-07-09 09:51:01",
"regIp": "127.0.0.1",
"loginTime": "2015-07-24 17:19:54",
"loginip": "127.0.0.1",
"weiboid": null,
"infoComplete": true
},
"museum": {
"id": "8aac49ea4ebede21014ebede4f460000",
"name": "北京体验馆",
"city": {
"id": "404040e64e2a016a014e2a017a7e0004",
"name": "北京",
"level": "CITY",
"code": "010"
},
"pic": null
},
"realName": "易天明",
"mobile": "18612444099"
}
]
},
"status": "OK"
}
分页查询接口
url:http://www.ifhzj.com/api/admin/experienceAppoint
method:GET
params:page 页号;size 大小;status 预约状态 WAITING,PROCESSING,FINISH,CANCEL
单个查询接口
url:http://www.ifhzj.com/api/admin/experienceAppoint/{id}
method:GET
params:id,路径参数
取消预约接口
url:http://www.ifhzj.com/api/admin/experienceAppoint/{id}/cancel
method:POST
params:id,路径参数
处理预约信息接口
接口用途:确定用户到馆时间,可选为用户留言,随后订单进入PROCESSING阶段
url:http://www.ifhzj.com/api/admin/experienceAppoint/{id}/process
method:POST
params:id,路径参数;message 给用户的留言;appointTime 到馆时间(yyyy-MM-dd HH:mm:ss)