@lina
2018-12-21T13:38:13.000000Z
字数 21351
阅读 572
列表项
志愿医生 1.0
- 【测试url】http://api.doctor.alpha.flashdiet.cn/api/v1
- 【线上url】
token: [string] 登录后获取的token信息,请将此字段至于请求头中,详见1.1.3
X-auth-token: [string] 登录后获取的token信息, 取window.token 请求头带此字段X-location: [string] 坐标 lng-lat 请求头带此字段
- 按宽度等比例缩放,http://image.com/logo.jpg?100x0,将logo.jpg按宽度100px进行等比例缩放
- 按高度等比例缩放,http://image.com/logo.jpg?0x100,将logo.jpg按高度100px进行等比例缩放
- 裁图,http://image.com/logo.jpg?100x80,将logo.jpg以图片中心为原点裁成100px宽,80px高的图
- 【测试url】http://api.doctor.alpha.flashdiet.cn/api/
- 【线上url】
通用图片上传文件服务
请求URL
POST
/imgupload
请求参数
file: 文件
响应
{error_code: 0,data: {url: 'http://xxx'}}
url: [string] 文件的访问URL
注:请求图片时,需解析图片的cookie,不然无法认证
请求URL
GET
/captcha/app
请求URL
POST
/verifycode
请求参数
captcha_code: [string] 图形验证码phone: [string] 手机号
响应
{error_code: 0,data: {}}
请求URL
get
/city
请求参数
parent_id: [integer] 当不传值时,取parent_id=0的数据,即省、直辖市
响应
{error_code: 0,data: {"list": [{"id": 0,"parent_id": 0,"name": "string","short_name": "string","pinyin": "string","sort": 0,}]}}
请求URL
get
/area/city
请求参数
name: [string] 城市名称
响应
{error_code: 0,data: {"list": [{"id": 0,"parent_id": 0,"name": "string","short_name": "string","pinyin": "string","sort": 0,}]}}
error_code: [int] 服务器状态码,0 为正常状态,异常状态待定。error_message:[string] 错误信息,但error_code不为 0 时返回
data: [object] 数据字段,所有响应数据都在此字段中list: [array],当返回数据为列表时会将数据放在该字段
page: [object] 分页信息,当返回数组数据时会携带该字段
current_page: [int] 当前页码,默认为1total_page: [int] 总页数count: [int] 总数page_size: [int] 每页数量:本项目常用page_size==10
示例
{error_code: 0,data: {key: value,list: [{key: value}],page {}}}
jump_mode:[int]0: 不跳转
1: 跳转至链接 href字段
{id: 1,title: '活动',photo: 'http://oss-static-resource.oss-cn-beijing.aliyuncs.com/image/2017-03-09/35ca97afe5194f27eaf15a9cac6ef279.jpeg',jump_mode: 2jump_id: 1,href: '',}
id: [int] IDtitle: [string] 广告titleephoto: [string] 广告图片地址jump_mode: [integer] 跳转类型,详见2.1jump_id: 跳转的指向id,根据jump_mode含义跳转href: [string] 根据jump_mode会有相应的值
{id: 1,title: '活动',photo: 'http://oss-static-resource.oss-cn-beijing.aliyuncs.com/image/2017-03-09/35ca97afe5194f27eaf15a9cac6ef279.jpeg',content: "<div>富文本</div>"publish_time: "2017-02-17 13:00:00",}
id: [int] IDtitle: [string] titlephoto: [string] logo图片content: [string] 富文本内容publish_time: [string] 发布时间
{id: 1,real_name: '张三',phone: '15512341234',avatars: "http://baidu.com/image"idno: "111000197807138521",sex: 1,birthday: '1988-08-23',age: 29,email: "email@qq.com",height: "172",weight: "89",province_id: 110000,province_name: "北京",city_id: 111000,city_name: "北京市",county_id: 111010,county_name: "朝阳区",addr: "国贸三期",marital_status: 1,drink_status: 1,smoking_status: 1,credit_score: '3.4',punctuality_score: '4.5',is_verify: 1,join_project_count: 3,done_project_count: 2,token: "6f476a45e20898330f07cbc4ff03e3df5a35203f36e3c",}
id: [int] IDreal_name: [string] 真实姓名phone: [string] 手机号avatars: [string] 头像idno: [string] 身份证号码sex: [string] 性别 1男 2女birthday: [string] 生日age: [integer] 年龄height: [string] 身高weight: [string] 体重province_id: [integer] 省份idprovince_name: [string] 省份名称city_id: [integer] 城市idcity_name: [string] 城市名称county_id: [integer] 区县idcounty_name: [string] 区县名称addr: [string] 地址marital_status: [integer] 婚姻状况 0未婚 1已婚 2离异 3丧偶drink_status: [integer] 是否饮酒 0不喝 1喝酒smoking_status: [integer] 是否抽烟 0不抽烟 1抽烟credit_score: [string] 诚信分punctuality_score: [string] 守时分is_verify: [integer] 是否验证通过 0待核验 1启用 2禁用join_project_count: [integer] 成功挂号次数done_project_count: [integer] 就诊次数token: [string] token
{id: 1,real_name: '张三',phone: '15512341234',avatars: "http://baidu.com/image"idno: "111000197807138521",hospital: '省人民医院',departments: "内科",job_position: "主任",good_at: "擅长",work_photo: ['http://img','http://img',],abstract: '个人简介',visits_count: 10,patient_count: 30,service_time_long: 400,work_time: [{'morning':1, 'afternoon':0},{'morning':1, 'afternoon':0},{'morning':1, 'afternoon':0},{'morning':1, 'afternoon':0},{'morning':1, 'afternoon':0},{'morning':1, 'afternoon':0},{'morning':1, 'afternoon':0},],is_verify: 1,score: '4.5',token: "6f476a45e20898330f07cbc4ff03e3df5a35203f36e3c",org_list: [{@组织信息}]}
id: [int] IDreal_name: [string] 真实姓名phone: [string] 手机号avatars: [string] 头像idno: [string] 身份证号码hospital: [string] 工作医院departments: [string] 科室job_position: [string] 职称work_photo: [array] 工作证明材料abstract: [string] 个人简介visits_count: [integer] 出诊次数patient_count: [integer] 服务病人数service_time_long: [integer] 服务时长 单位分work_time: [array] 工作时间,长度为7的数组is_verify: [integer] 是否验证通过 0待核验 1启用 2禁用score: [string] 评分token: [string] tokenorg_list: [array] 组织信息列表
{id: 1,real_name: '张三',phone: '15512341234',avatars: "http://baidu.com/image"idno: "111000197807138521",email: "email@qq.com",team_name: '省人民医院',province_id: 110000,province_name: "北京",city_id: 111000,city_name: "北京市",county_id: 111010,county_name: "朝阳区",addr: "国贸三期",help_count: 10,is_verify: 1,token: "6f476a45e20898330f07cbc4ff03e3df5a35203f36e3c",}
id: [int] IDreal_name: [string] 真实姓名phone: [string] 手机号avatars: [string] 头像idno: [string] 身份证号码team_name: [string] 志愿团队province_id: [integer] 省份idprovince_name: [string] 省份名称city_id: [integer] 城市idcity_name: [string] 城市名称county_id: [integer] 区县idcounty_name: [string] 区县名称addr: [string] 地址help_count: [integer] 帮扶病人数is_verify: [integer] 是否验证通过 0待核验 1启用 2禁用token: [string] token
{id: 1,photo: ['http://oss-static-resource.oss-cn-beijing.aliyuncs.com/image/2017-03-09/35ca97afe5194f27eaf15a9cac6ef279.jpeg',]content: "病例"}
id: [int] IDphoto: [array] 病例图片content: [string] 病例描述
{id: 123,type: 1,title: '标题',content: '文字描述',publish_time: '2017-09-25 23:05:23',username: "wang59",avatars: "http://image.com/1.jpeg"}
id: [integer] IDtype: [integer] 类型 0全量消息,1单发消息title: [string] 标题content: [string] 内容publish_time: [string] 发布时间username: [string] 消息发送人avatars: [string] 消息发送人头像
{id: 123,date: "2018-03-01",begin: '09:00:00',end: '11:00:00',people_count: 20,join_people_count: 13,addr: "地点",lng: "127.000000",lat: "39.00000",abstract: "活动简介",price: 50,status: 1,progress_status: 1,service_target: ['老年人'],hospital_info: @医院信息doctor_info: @医生信息,join_user: [@患者信息],project_status: 1,op_cancel: 1,is_join: 1,assistant_join_count: 2,plan_time: {"15:23:00 - 15:53:00": 7,"15:53:00 - 16:23:00": 7,"16:23:00 - 16:53:00": 7,"16:53:00 - 17:23:00": 7,"17:23:00 - 17:53:00": 7,"17:53:00 - 18:23:00": 7,"18:23:00 - 18:53:00": 7,"18:53:00 - 19:23:00": 7,"19:23:00 - 19:53:00": 6,"19:53:00 - 20:23:00": 6,"20:23:00 - 20:53:00": 6}}
id: [integer] IDdate: [string] 义诊日期begin: [string] 义诊开始时间end: [string] 义诊结束时间people_count: [integer] 人数join_people_count: [integer] 参加人数addr: [string] 地址lng: [string] 经度lat: [string] 纬度abstract: [string] 义诊简介price: [integet] 押金progress_status: [integer] 活动状态 1可预约 2已约满 3已结束service_target: [array] 服务对象hospital_info: [string] 医院信息doctor_info: [string] 医生信息join_user: [array] 加入的用户project_status: [int] 义诊状态 1待出诊 2出诊中 3已结束op_cancel: [int] 医生是否能取消,患者是否可以退出 0不能 1可以is_join: [int] 是否加入 0不能 1可以assistant_join_count: [int] 医助协助加入的人数,医助端我的挂号接口下发plan_time: [object] 每个时间段的可挂号数
患者加入义诊项目后,为一次诊断
{id: 123,assistant_user_id: 1,verify_status: 1,reject_msg: '111',visit_time: '2017-08-03 15:33:33',diag_result: 1,diag_photo: ['image_url'],status: 1,refund_status: 1,patient_credit_score: 3,patient_punctuality_score: 4,doctor_comment_time: '2018-03-04 15:33:33',doctor_score: 4,doctor_comment: '亲切',patient_comment_time: '2018-03-04 15:33:33',user_info: [@患者信息],casebook_info: [@病例信息],}
id: [integer] IDassistant_id: [integer] 医助id 如不为0 则是医助协助verify_status: [integer] 审核状态 1预约成功 2预约被拒绝 3已取消reject_msg: [string] 拒绝原因 如拒绝,不为空visit_time: [string] 义诊就诊时间diag_result: [string] 诊断结果diag_photo: [string] 诊断照片status: [integer] 状态 1待诊 2未诊 3已诊refund_status: [integer] 1已申请退款(退款中) 2退款中(中间状态,前端忽略) 3退款完成patient_credit_score: [integer] 医生对患者的诚信评分patient_punctuality_score: [string] 医生对患者的守时评分doctoy_comment_time: [string] 医生对患者评论的时间,即patient_credit_score和doctoy_commet_time产生的时间doctor_score: [integer] 患者对医生评分doctor_comment: [string] 患者对医生评价patient_comment_time: [string] 患者对医生的评论时间患者对医生的评论时间, 即doctor_score和doctor_comment产生的时间user_info: [object] 患者信息casebook_info: [object] 病例信息
{id: 123,name: '人民医院',logo: "imgae_url",banner: ["imgae_url"],level: '三甲医院',tag: '心血管科',province_id: 110000,province_name: "北京",city_id: 111000,city_name: "北京市",county_id: 111010,county_name: "朝阳区",addr: "国贸三期",}
id: [integer] IDname: [string] 医院名称logo: [string] logobanner: [array] bannerlevel: [string] 级别tag: [string] 标签 特色province_id: [integer] 省份idprovince_name: [string] 省份名称city_id: [integer] 城市idcity_name: [string] 城市名称county_id: [integer] 区县idcounty_name: [string] 区县名称addr: [string] 地址
{id: 123,name: 'xx组织',logo: "imgae_url",abstract: "xxxx",}
id: [integer] IDname: [string] 医院名称logo: [string] logoabstract: [string] 组织简介
{id: 123,date: "2018-03-01",begin: '09:00:00',end: '11:00:00',people_count: 20,join_people_count: 13,addr: "地点",lng: "127.000000",lat: "39.00000",abstract: "活动简介",photo: "活动url"price: 50,status: 1,progress_status: 1,service_target: ['老年人'],hospital_info: @医院信息,org_info: @组织信息,project_status: 1,join_user: [@患者信息],}
id: [integer] IDdate: [string] 义诊日期begin: [string] 义诊开始时间end: [string] 义诊结束时间people_count: [integer] 人数join_people_count: [integer] 参加人数addr: [string] 地址lng: [string] 经度lat: [string] 纬度abstract: [string] 专题活动简介photo: [string] 专题活动图片urlprice: [integet] 押金progress_status: [integer] 活动状态 1可预约 2已约满 3已结束service_target: [array] 服务对象hospital_info: [string] 医院信息org_info: [object] 组织信息project_status: [int] 义诊状态 1待出诊 2出诊中 3已结束join_user: [array] 加入的用户
{id: 123,type: 1,from_user_id: 2,to_user_id: 1content: "xxxx",photo: "xxxx",is_read: 0",dialog_id: 0",from_user: {real_name: 'xx',avatars: 'http://www.xx.com'},to_user: {real_name: 'xx',avatars: 'http://www.xx.com'}}
id: [integer] IDtype: [integer] 消息发送者的类型: 1表示患者,2表示医生from_user_id: [integer] 消息发送者user_idto_user_id: [integer] 消息接受者user_idcontent: [string] 消息内容photo: [array] 消息图片列表,最多三张is_read: [integer] 0 未读, 1 已读dialog_id: [string] 该聊天记录所属哪个对话
{id: 123,patient_user_id: 12,doctor_user_id: 13,last_msg_id: "xxxx",last_msg: {@留言信息}patient_user: {@用户信息},doctor_user: {@用户信息}}
id: [integer] 留言对话id(对应chat_dialog中的id)patient_user_id: [integer] 患者user_iddoctor_user_id: [integer] 医生user_idlast_msg_id: [string] 最后一条信息的id(chat_message表中id)last_msg: [object]最后一条信息的消息体(根据这个可以判断消息是否已读未读)
注:根据返回的个人信息,来判断跳转的页面是个人中心还是补全信息页
请求URL
POST
/register
请求参数
phono: [string] 手机号码 【必填】verify_code: [string] 验证码 【必填】pwd: [string] 密码【必填】type: [integer] 用户类型 1患者 2医生 3医助【必填】
响应
{error_code: 0,data: {@用户信息 (根据type动态返回结构)}}
请求URL
POST
/login
请求参数
phono: [string] 手机号码 【必填】pwd: [string] 密码【必填】type: [integer] 用户类型 1患者 2医生 3医助【必填】
响应
{error_code: 0,data: {@用户信息(根据type动态返回结构)}}
请求URL
PUT
/user
请求参数
avatars: [url] 头像 【非必填】real_name: [string] 真实姓名 【必填】idno: [string] 身份证号 【必填】height: [string] 身高 【必填】weight: [string] 体重 【必填】marital_status: [integer] 婚否 0未婚 1已婚 【必填】drink_status: [integer] 是否饮酒 0不饮酒 1饮酒 【必填】smoking_status: [integer] 是否抽烟 0不抽烟 1抽烟 【必填】province_id: [integer] 省份id 【非必填】city_id: [integer] 城市id 【非必填】county_id: [integer] 区县id 【非必填】addr: [string] 详细地址 【非必填】
响应
{error_code: 0,data: {@患者信息}}
注:接口地址跟患者补全信息接口一致,后端会根据token来判断
请求URL
PUT
/user
请求参数
avatars: [url] 头像 【非必填】real_name: [string] 真实姓名 【必填】idno: [string] 身份证号 【必填】hospital_id: [string] 医院id 【必填】departments: [string] 科室 【必填】job_position: [string] 职位 【必填】good_at: [string] 擅长 【必填】province_id: [integer] 省份id 【非必填】city_id: [integer] 城市id 【非必填】county_id: [integer] 区县id 【非必填】addr: [string] 详细地址 【非必填】work_photo: [array] 工作证明材料 图片 【必填】abstract: [string] 个人简介 【非必填】work_time: [string] json格式 工作时间,格式参考医生信息中的work_time 【非必填】
响应
{error_code: 0,data: {@医生信息}}
注:接口地址跟患者补全信息接口一致,后端会根据token来判断
请求URL
PUT
/user
请求参数
avatars: [url] 头像 【非必填】real_name: [string] 真实姓名 【必填】idno: [string] 身份证号 【必填】team_name: [string] 团队名称 【必填】province_id: [integer] 省份id 【非必填】city_id: [integer] 城市id 【非必填】county_id: [integer] 区县id 【非必填】addr: [string] 详细地址 【非必填】
响应
{error_code: 0,data: {@医助信息}}
请求URL
get
/user
请求参数
响应
{error_code: 0,data: {@用户信息(根据type动态返回结构)}}
注:根据返回的个人信息,来判断跳转的页面是个人中心还是补全信息页, 使用3.1.11接口发送短信
请求URL
POST
/reset/pwd
请求参数
phono: [string] 手机号码 【必填】verify_code: [string] 验证码 【必填】pwd: [string] 密码【必填】type: [integer] 用户类型 1患者 2医生 3医助【必填】
响应
{error_code: 0,data: {}}
get
/follow/user/{id}
请求参数
id: 用户id【必填】
响应
{error_code: 0,data: {}}
delete
/follow/user/{id}
请求参数
id: 用户id【必填】
响应
{error_code: 0,data: {}}
get
/user/{id}
请求参数
id: 用户id【必填】
响应
{error_code: 0,data: {@用户信息(根据type动态返回结构)}}
请求URL
POST
/phone/verifycode
请求参数
phone: phone【必填】
响应
{"error_code": 0,"data":{},"error_message": ""}
请求URL
get
/logout
响应
{"error_code": 0,"data":{},"error_message": ""}
请求URL
get
/message
请求参数
current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{"error_code": 0,"data":{"list":[@消息信息],"page":{@分页字段}},"error_message": ""}
请求URL
post
/login/phone
请求参数
photo: [string] 手机号码 【必填】verify_code: [string] 验证码 【必填】
响应
{"error_code": 0,"data":{@用户信息is_new: 1 // is_new表示是否为注册的},"error_message": ""}
请求URL
GET
/doctor/assistant
请求参数
响应
{error_code: 0,data: {"list": [@医助信息]}}
请求URL
get
/weixin/media
请求参数
media_id: [string] 素材id【必填】
响应
{"error_code": 0,"data":{'url':'http://img.jpg',},"error_message": ""}
请求URL
同3.1.10
请求URL
POST
/project
请求参数
date: [string] 义诊日期 【必填】 2018-02-25begin: [string] 开始时间 【必填】 09:30:00end: [string] 结束时间 【必填】 11:00:00people_count: [integer] 义诊人数【必填】lng: [string] 经度 【必填】lat: [string] 纬度 【必填】addr: [string] 义诊地址 【必填】service_target: [array] 服务对象 【必填】abstract: [string] 活动简介 【必填】price: [integer] 挂号押金 【必填】
响应
{error_code: 0,data: {@义诊信息}}
请求URL
GET
/doctor/project
请求参数
响应
{error_code: 0,data: {"list":[@义诊信息]}}
请求URL
GET
/project/{id}
请求参数
id: [integer] 义诊id 【必填】
响应
{error_code: 0,data: {@义诊信息}}
请求URL
GET
/project/{id}/cancel
请求参数
id: [integer] 义诊id 【必填】
响应
{error_code: 0,data: {}}
请求URL
GET
/project/{id}/patient
请求参数
id: [integer] 义诊id 【必填】
响应
{error_code: 0,data: {"list":[@诊断信息]}}
会将对医生有评论评论的诊断列出来
请求URL
GET
/doctor/comment
请求参数
current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list":[@诊断信息],"page":{@分页字段}}}
请求URL
GET
/doctor/project/patient
请求参数
status: 1待诊 2未诊 3已诊【非必填】current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list":[@诊断信息]"page":{@分页字段}}}
患者加入义诊项目后,为一次诊断
请求URL
GET
/diagnoses/{id}
请求参数
id: 诊断id【必填】
响应
{error_code: 0,data: {@诊断信息}}
请求URL
POST
/diagnoses/{id}/reject
请求参数
id: 诊断id【必填】reject_msg: 【string】 拒绝原因【必填】
响应
{error_code: 0,data: {}}
请求URL
GET
/diagnoses/{id}/done
请求参数
id: 诊断id【必填】
响应
{error_code: 0,data: {}}
请求URL
POST
/doctor/diagnoses/{id}/comment
请求参数
id: 诊断id【必填】patient_credit_score: 【integer】 诚信分【必填】patient_punctuality_score: 【integer】 守时分【必填】
响应
{error_code: 0,data: {}}
请求URL
PUT
/diagnoses/{id}
请求参数
id: 诊断id【必填】diag_result: 【string】 诊断结果【必填】diag_photo: 【array】 诊断结果照片数组【非必填】
响应
{error_code: 0,data: {}}
请求URL
GET
/news/{type}/list
请求参数
type: 类型【必填】 1患者端公告 2医生端 3医助端current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list":[@新闻信息]"page":{@分页字段}}}
请求URL
GET
/news/{id}
请求参数
id: id【必填】
响应
{error_code: 0,data: {@新闻信息}}
请求URL
/doctor/index
请求参数
响应
{error_code: 0,data: {"news":[@新闻信息],"doctor_info":@医生信息,"project_list":[@义诊信息],"diagnoses_list":[@诊断信息]}}
请求URL
同3.3.1,page_size传一个较大值即可
请求URL
GET
/org
请求参数
keyword: 组织名称搜索
注意区别3.2.21接口,本接口是加入的时候选择列表
响应
{"error_code": 0,"data":{"list": [@组织信息],"page":{@分页字段}},"error_message": ""}
请求URL
POST
/org_add/{org_id}
请求参数
org_id为机构id
响应
{"error_code": 0,"data": null,"error_message": ""}
请求URL
DELETE
/org_remove/{id}
请求参数
id为我已申请加入的组织列表(见3.2.21接口)返回的id
响应
{"error_code": 0,"data": null,"error_message": ""}
请求URL
GET
/org/my
请求参数
无
响应
{"error_code": 0,"data": {list: [{id: 12,verify_status: 0,org_id: 12,doctor_id: 13,org: {@组织信息}}],"page":{@分页字段}},"error_message": ""}
请求URL
GET
/all_diagnoses/{id}
请求参数
id: 病人的user_id
响应
{"error_code": 0,"data": [{"id": 2,"hospital_id": 2,"assistant_user_id": 0,"user_id": 8,"doctor_user_id": 6,"project_id": 14,"casebook_id": 1,"verify_status": 1,"reject_msg": "","visit_time": "2018-04-01 08:30:00","status": 3,"amount": "0.00","refund_status": null,"refund_time": null,"refund_sn": null,"confirm_no_refund": 0,"sn": null,"diag_result": "好好睡就行了","diag_photo": null,"patient_credit_score": 0,"patient_punctuality_score": 0,"patient_comment_show": 1,"doctor_comment_time": null,"doctor_score": 3,"doctor_comment": "123123","doctor_comment_show": 1,"patient_comment_time": "2018-03-31 21:46:55","plan_time": null,"created_at": "2018-04-08 22:42:16","updated_at": "2018-04-08 22:42:16","casebook": {"id": 1,"user_id": 8,"project_id": 14,"content": "123123","photo": null,"created_at": "2018-03-26 19:04:58","updated_at": "2018-03-26 19:04:58"},"doctor": {"id": 6,"real_name": "Kobe","avatars": "http://.cn/ss.png"},"user": {"id": 8,"real_name": "郑智勇","avatars": "http://a.cn/ss.jpg"}},],"error_message": ""}
请求URL
GET
/hospital
请求参数
keyword: 搜索【非必填】current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list":[@医院信息],"page":{@分页字段}}}
请求URL
GET
/project
请求参数
keyword: 搜索【非必填】sort: 排序方式 【非必填】1离我最近、2最新发布、3热门义诊service_target: 义诊对象 【非必填】 老年人、儿童等departments: 疾病类型 对应的是科室的选择 【非必填】hospital_id: 医院id【非必填】org_id: 机构id【非必填】(v2.0添加)current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list":[@义诊信息],"page":{@分页字段}}}
请求URL
同3.2.5
请求URL
/project/{id}/join
请求参数
POST
id: 义诊id【必填】content: 【string】病例信息【必填】photo: 【array】图片 最多三张【非必填】plan_time: 为选择的时间段如:"15:23:00 - 15:53:00"
响应
{error_code: 0,data: {}}
请求URL
/custom/project/{id}/cancel
请求参数
GET
id: 义诊id【必填】
响应
{error_code: 0,data: {}}
会将对医生有评论评论的诊断列出来
请求URL
GET
/doctor/{id}/comment
请求参数
id: 医生id【必填】current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list":[@诊断信息],"page":{@分页字段}}}
请求URL
同3.1.8
请求URL
GET
/project/{id}/casebook
请求参数
id义诊id 【必填】
响应
{error_code: 0,data: {@病例信息}}
请求URL
GET
/doctor/list
请求参数
keyword: 搜索【非必填】sort: 排序方式 【非必填】1评分最高 2热门医生departments: 疾病类型 对应的是科室的选择 【非必填】job_position: 职位 对应的是职位的选择 【非必填】hospital_id: 医院id 【非必填】org_id: 机构id 【非必填】(v2.0新增)current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list":[@医生信息],"page":{@分页字段}}}
请求URL
同3.1.10
请求URL
GET
/custom/doctor/{id}/project
请求参数
id: 医生的id【必填】current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list":[@义诊信息],"page":{@分页字段}}}
请求URL
GET
/custom/follow
请求参数
current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list": [@医生信息],"page":{@分页字段}}}
请求URL
GET
/custom/diagnoses
请求参数
type: 1已挂号 2挂号失败 3未到诊 4诊疗完成 【非必填】current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list":[@诊断信息]"page":{@分页字段}}}
请求URL
GET
/custom/need/comment
请求参数
current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list": [@诊断信息],"page":{@分页字段}}}
请求URL
GET
/custom/payment/diagnoses
请求参数
current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {@诊断信息],"page":{@分页字段}}}
请求URL
GET
/custom/assistant
请求参数
响应
{error_code: 0,data: {"list": [@医助信息]}}
请求URL
POST
/custom/diagnoses/{id}/comment
请求参数
id: 诊断id【必填】doctor_score: 【integer】 评分【必填】doctor_comment: 【string】 评论【必填】
响应
{error_code: 0,data: {}}
请求URL
GET
/custom/center
请求参数
响应
{error_code: 0,data: {"user_info": @用户信息,"msg_count": 1,}}
请求URL
GET
/custom/homepage
请求参数
hospital_id: 医院id【非必填】 如填写 则获取对应的医院首页数据org_id: 组织id【非必填】 如填写 则获取对应的组织首页数据
响应
{error_code: 0,data: {"banner": [@banner广告],"news": [@新闻公告],"project_list": [@诊断信息],"special_pro_list": [@专题活动信息],}}
请求URL
GET
/order/query/{sn}
请求参数
sn: 订单流水号
响应
{"error_code": 0,"data":{@诊断信息 //购买成功返回 失败返回空},"error_message": ""}
同 3.2.18
请求URL
同3.1.8
请求URL
GET
/assistant/follow
请求参数
current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list": [@医生信息],"page":{@分页字段}}}
使用3.1.11接口发送短信
请求URL
POST
/assistant/bind/patient
请求参数
phone: 手机号【必填】verify_code: 验证码【必填】
响应
{error_code: 0,data: {}}
请求URL
POST
/assistant/create/patient
请求参数
avatars: [url] 头像 【非必填】real_name: [string] 真实姓名 【必填】idno: [string] 身份证号 【必填】height: [string] 身高 【必填】weight: [string] 体重 【必填】marital_status: [integer] 婚否 0未婚 1已婚 【必填】drink_status: [integer] 是否饮酒 0不饮酒 1饮酒 【必填】smoking_status: [integer] 是否抽烟 0不抽烟 1抽烟 【必填】province_id: [integer] 省份id 【非必填】city_id: [integer] 城市id 【非必填】county_id: [integer] 区县id 【非必填】addr: [string] 详细地址 【非必填】pwd: [string] 密码 【必填】
响应
{error_code: 0,data: {}}
请求URL
GET
/assistant/patient
请求参数
keyword: 搜索【非必填】current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list": [@患者信息],"page":{@分页字段}}}
请求URL
同3.1.10
请求URL
POST
/assistant/join/project/{id}
请求参数
id: project id【必填】 integeruser_id: 用户id【必填】plan_time: 为选择的时间段如:"15:23:00 - 15:53:00"【必填】
响应
{error_code: 0,data: {}}
请求URL
GET
/assistant/project
请求参数
current_page: 页码【非必填】默认1page_size: 页长【非必填】 默认10
响应
{error_code: 0,data: {"list": [@义诊信息],"page":{@分页字段}}}
请求URL
GET
/assistant/project/{id}/paitient
请求参数
id: 义诊id
响应
{error_code: 0,data: {"list": [@诊断信息],"page":{@分页字段}}}
请求URL
GET
/assistant/diagnoses/{id}/cancel
请求参数
id: 诊断id
响应
{error_code: 0,data: {}}
请求URL
GET
/assistant/center
请求参数
响应
{error_code: 0,data: {"user_info": @用户信息,"msg_count": 1,}}
请求URL
GET
/assistant/homepage
请求参数
响应
{error_code: 0,data: {"banner": [@banner广告],"news": [@新闻公告],"project_list": [@诊断信息],}}
请求URL
GET
/sp_project
请求参数
- 分页的一些字段
响应
{error_code: 0,data: {"list":[@专题活动信息],"page": {@分页}}}
请求URL
GET
/sp_project/{id}
请求参数
id: [integer] 专题活动id 【必填】- 分页的一些字段
响应
{error_code: 0,data: {"list":[@活动信息],"page": {@分页}}}
请求URL
GET
/chat
请求参数
- 分页的一些字段
- 请求头必须带上token
响应
{error_code: 0,data: {"list":[@留言对话列表,按照最近的聊天对象排序的],"page": {@分页}}}
请求URL
POST
/chat
请求参数
content: [string] 消息内容,最大长度256【必填】photo: [array] 留言图片,最多3张吧【必填】type: [integer] 发起留言的用户类型,患者1、医生2【必填】to_user_id: [integer] 发送对象的用户id【必填】
响应
{error_code: 0,data: {"list":[@聊天信息,按照先后顺序依次排列],}}
请求URL
GET
/chat/{id}
请求参数
- 分页的一些字段
id: 为下发会话对象中的id(chat_dialog表中的id)
响应
{error_code: 0,data: {"list":[@聊天信息,按照先后顺序依次排列],}}