文档
测试

请求消息(done)

POST
http://127.0.0.1:8000/api/get-message

接口描述

根据每一个问题来返回特定聊天记录。questionToDoctor表为标题,message表为内容+标题。

请求头

参数名
类型
描述
必填
Authorization
String
Token
必填

请求参数

参数名
类型
描述
必填
questiontodoctor_id
Integer
必填
doctor_id
Integer
必填
current
Integer
必填
pageSize
Integer
必填

说明 / 示例

{ "error": 1, "total": 0, "message": "未找到相关聊天记录!" } { "error": 0, "messages": [ { "id": 65, "content": "3", "status": 0, "message_type": 1, "from_user": 14, "to_user": 1, "questionstodoctor_id": 17, "send_time": "2020-05-07 09:04:47", "created_at": "2020-05-07 09:04:48", "updated_at": "2020-05-07 09:04:48" }, { "id": 63, "content": "2", "status": 0, "message_type": 1, "from_user": 14, "to_user": 1, "questionstodoctor_id": 17, "send_time": "2020-05-06 09:49:11", "created_at": "2020-05-06 09:49:11", "updated_at": "2020-05-06 09:49:11" }, { "id": 62, "content": "[标题:lon1]\n[内容:1]", "status": 0, "message_type": 1, "from_user": 14, "to_user": 1, "questionstodoctor_id": 17, "send_time": "2020-05-06 09:48:48", "created_at": "2020-05-06 09:48:48", "updated_at": "2020-05-06 09:48:48" } ], "total": 3 }