文档
测试

创建聊天框(postChat)

POST
http://localhost:520/api/chat

请求参数

参数名
类型
描述
必填
fromId
int
示例:1
必填
toId
int
示例:2
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:sucess
必填
data
object
数据字典
必填
id
int
示例:3
必填
afterMessage
string
示例:第五次发消息
必填
status
boolean
示例:false
必填
fromId
int
示例:1
必填
toId
int
示例:2
必填
belong
int
示例:1
必填
created_at
string
示例:2020-11-21T02:57:56.000Z
必填
updated_at
string
示例:2020-11-23T00:55:38.000Z
必填

说明 / 示例

```json { "code": 0, "msg": "sucess", "data": { "id": 3, "afterMessage": null, "status": false, "fromId": 1, "toId": 2, "belong": 1, "created_at": "2020-11-21T02:57:56.000Z", "updated_at": "2020-11-21T02:57:56.000Z", "deleted_at": null } } ```