文档
测试

发送消息(done)

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

接口描述

发送一条聊天记录 ,发送之后还要更新聊天关系的表格:chatRealtion and message表

请求参数

参数名
类型
描述
必填
to_user
Integer
必填
content
String
必填
message_type
Integer
1:文字 2:图片
必填
send_time
String
必填
questiontodoctor_id
Integer
必填

说明 / 示例

{ "error": 0, "message": { "content": "\"123123\"", "status": 1, "message_type": "1", "from_user": 14, "to_user": "1", "send_time": "2019-08-04 10:23:22", "questionstodoctor_id": "14", "updated_at": "2020-04-21 22:03:21", "created_at": "2020-04-21 22:03:21", "id": 60 } }