文档
测试

咨询明细

POST
http://devcloud.jsyixin.com/?r=third/huanshuo/DataSynchuanshuo/ConsultingInfo

接口描述

咨询信息接口

请求头

参数名
类型
描述
必填
Content-Type
string
application/x-www-form-urlencoded
必填

返回code码

|code码|类型|描述| |-|-|-| |200|int|成功| |400|int|参数错误或验证失败| |500|int|服务器错误|

请求参数

参数名
类型
描述
必填
appKey
string
appKey
必填
appSecret
string
appSecret
必填
start_time
date
开始时间,格式:2020-05-20 19:37:47
必填
end_time
date
结束时间,格式:2020-05-27 15:19:56
必填
page
int
页码
必填
size
int
每页条数
必填

响应参数

参数名
类型
描述
必填
status
string
示例:success
必填
code
int
示例:200
必填
message
object
数据字典
必填
total
int
总页数,示例:1
必填
data
array
数据列表
必填
id
int
咨询id,示例:30
必填
type
int
预约类型,0 首次 1 续约 2 转介,示例:1
必填
date
int
咨询日期,示例:1591200000
必填
username
string
咨询师,示例:高天咨询
必填
start_time
int
开始时间,示例:1591207200
必填
end_time
int
结束时间,示例:1591214400
必填
address
string
咨询地点,示例:高天咨询室
必填
out_time
string
转出时间,示例:2020-06-09 09:05:15(如果auth_status为0,该值为null)
必填
refer_to_id
string
转入方id,示例:(如果auth_status为0或者refer_status为0,该值为null)
必填
refer_to_name
object
转入方,示例:null(如果auth_status为0或者refer_status为0,该值为null)
必填
enter_time
string
转入时间,示例:2020-06-09 09:05:15(如果auth_status为0,该值为null)
必填
refer_status
int
接收状态,0 未接收 1 已接收,示例:0(如果auth_status为0,该值为null)
必填
teacher_id
string
咨询师id,示例:gaotianzixun
必填
test
array
数据列表
必填
name
string
量表名称,示例:压力感知量表(多个量表已逗号隔开)
必填
status
int
作答状态,0 已分配 1 作答完毕,示例:1
必填
report_grant
int
授权状态,0 未授权 1 授权,示例:0
必填
auth_statue
int
是否转介,0 未转介 1 转介,示例:1
必填
status
int
预约状态,0 已超时 1 未超时,示例:0
必填
student_id
string
学生id,示例:test1234
必填
records
int
总条数,示例:4
必填
page
int
当前页,示例:1
必填

说明 / 示例

{ "status": "success", "code": 200, "message": { "total": 1, "data": [ { "id": 21, "type": 0, "date": 1589990400, "username": "王老师", "start_time": 1589990400, "end_time": 1590076740, "address": "家", "out_time": null, "refer_to_id": "", "refer_to_name": null, "enter_time": null, "refer_status": null, "teacher_id": "18435110714", "test": [], "auth_statue": 0, "status": 0, "student_id": "2236077" }, { "id": 22, "type": 0, "date": 1590422400, "username": "2527942XX535", "start_time": 1590483600, "end_time": 1590494400, "address": "心理咨询室", "out_time": null, "refer_to_id": "", "refer_to_name": null, "enter_time": null, "refer_status": null, "teacher_id": "2527942", "test": [ { "name": "压力感知量表(小学)", "status": 1, "report_grant": 0 } ], "auth_statue": 0, "status": 0, "student_id": "2236080" }, { "id": 23, "type": 0, "date": 1590336000, "username": "王老师", "start_time": 1590397200, "end_time": 1590411600, "address": "家", "out_time": null, "refer_to_id": "", "refer_to_name": null, "enter_time": null, "refer_status": null, "teacher_id": "18435110714", "test": [], "auth_statue": 0, "status": 0, "student_id": "2238636" }, { "id": 31, "type": 0, "date": 1590595200, "username": "王老师", "start_time": 1590595200, "end_time": 1590681540, "address": "心理咨询室", "out_time": null, "refer_to_id": "", "refer_to_name": null, "enter_time": null, "refer_status": null, "teacher_id": "18435110714", "test": [ { "name": "青少年学习倦怠量表", "status": 1, "report_grant": 1 } ], "auth_statue": 0, "status": 0, "student_id": "2236080" } ], "records": 4, "page": 1 } }