简要描述
- 预约主界面加载或点击左侧日历日期,查询该医生的预约设置信息,页面根据该信息控制某时间段是否可预约
请求URL
http://xx.com/ApiAppoint/GetAppointSetInfo/1
请求方式
参数
参数名 |
必选 |
类型 |
说明 |
startDate |
是 |
string |
开始日期 |
physician_Code |
是 |
Date |
医师编号 |
days |
是 |
Date |
查询几天的数据,例如首次加载界面 查询7天,点击小箭头则1 |
返回示例
{
"code": 0,
"data": [
[{
"appointDate": "2021-11-21 00:00:00",
"setList": [{
"appointDate": "2021-11-21 00:00:00",
"appointTime": "09:30",
"physicianName": null,
"physicianId": 0,
"physician_Code": null,
"departmentId": 0,
"departmentName": null,
"isBan": true,
"id": 0,
"createTime": "0001-01-01 00:00:00",
"createUId": 0,
"lastTime": "0001-01-01 00:00:00",
"lastUId": 0,
"hpId": 0,
"isActivated": false
},
{
"appointDate": "2021-11-21 00:00:00",
"appointTime": "09:00",
"physicianName": null,
"physicianId": 0,
"physician_Code": null,
"departmentId": 0,
"departmentName": null,
"isBan": true,
"id": 0,
"createTime": "0001-01-01 00:00:00",
"createUId": 0,
"lastTime": "0001-01-01 00:00:00",
"lastUId": 0,
"hpId": 0,
"isActivated": false
}
]
}
}
返回参数说明
参数名 |
类型 |
说明 |
Code |
int |
0:成功 -1:失败 |
Data |
List<Resultdata> |
预约设置列表,按天分 |
AppointSetting对象字段说明
属性 |
类型 |
说明 |
AppointDate |
DateTime |
日期 2001-01-01 |
SetList |
List<AppointSetting> |
预约设置列表,按天分 |
AppointTime |
string |
时间 11:30 |
IsBan |
bool |
是否可以预约 |
备注