[TOC]
# 获取所在地的接种点
~~~[api]
get:/api/jiezhong/getJiezhongdian
*string:place=昆明#所在城市
<<<
success
{
"code": 1,
"msg": "获取成功!",
"data": [
{
"name": "昆明医科大学第二附属医院",
"address": "昆明市五华区滇缅大道374号",
"province": "云南省",
"city": "昆明市",
"area": "五华区",
"street_id": "e35f918ff96c332b2ce67b76",
"telephone": "(0871)65351281",
"detail": 1,//无意义的字段
"uid": "e35f918ff96c332b2ce67b76",//唯一标识
"lat": 25.059617,
"lng": 102.688291,
"paidui": 0
},
],
"url": "/api/Jiezhong/getjiezhongdian",
"wait": 3
}
<<<
error
{
"code": 0,
"msg": "未读取到所在地!",
"data": "",
"url": "",
"wait": 3
}
~~~
# 获取单个诊所信息
~~~[api]
get:/api/jiezhong/getJiezhongdianById
*integer:id=1#门诊编号
<<<
success
{
"code": 1,
"msg": "获取成功!",
"data": [
{
"name": "昆明医科大学第二附属医院",
"address": "昆明市五华区滇缅大道374号",
"province": "云南省",
"city": "昆明市",
"area": "五华区",
"street_id": "e35f918ff96c332b2ce67b76",
"telephone": "(0871)65351281",
"detail": 1,//无意义的字段
"uid": "e35f918ff96c332b2ce67b76",//唯一标识
"lat": 25.059617,
"lng": 102.688291,
"paidui": 0
},
],
"url": "/api/Jiezhong/getjiezhongdian",
"wait": 3
}
<<<
error
{
"code": 0,
"msg": "未找到信息!",
"data": "",
"url": "",
"wait": 3
}
~~~
# 获取疫苗种类
~~~[api]
get:/api/jiezhong/getyimiao
<<<
success
{
"code": 1,
"msg": "获取成功",
"data": [
{
"id": 1,
"icon": null,//字体库标记
"name": "乙肝",//名字
"order": 0
}
],
"url": "/api/Jiezhong/getyimiao",
"wait": 3
}
<<<
error
无
~~~
# 获取某个诊所某天的预约情况
~~~[api]
post:/api/jiezhong/getYuyueByDateAndId
*integer:id=1#接种点ID
*date=20190509#日期 20190509 或者20189-05-09
<<<
success
{
"code": 1,
"msg": "操作成功",
"data": {
"date": "20190509", //预约时间
"time": 1557331200, //unix时间戳
"am": 5, //上午可预约人数
"pm": 5 //下午可预约人数
},
"url": "/api/Jiezhong/getyuyuebydateandid",
"wait": 3
}
<<<
error
无
~~~