消息首页列表

简要描述
  • 消息首页列表接口
请求URL
  • http://zhibo.cookiegeeks.com/message/msg-index
请求方式
  • POST
参数
参数名 必选 类型 说明
token string token
返回示例
  {
    "code": 200,
    "msg": "操作成功",
    "data": {
        "19761942": {
            "id": "1",
            "channel_id": "19761942",
            "sender_id": "1942",
            "sender_name": "揽新晨",
            "receiver_id": "1976",
            "receiver_name": "草木灰",
            "request_id": "0",
            "type": "1",
            "content": "hhh ",
            "create_time": "1634896679",
            "is_read": "0",
            "receive_user_id": "11",
            "send_user_id": "10",
            "target": {
                "avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic21.nipic.com%2F20120606%2F5137861_093119370162_2.jpg&refer=http%3A%2F%2Fpic21.nipic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1636269563&t=f2ae4c8003808a6d66f1447b844c1204",
                "nickname": "草木灰2"
            }
        },
        "19771942": {
            "id": "2",
            "channel_id": "19771942",
            "sender_id": "1942",
            "sender_name": "揽新晨",
            "receiver_id": "1977",
            "receiver_name": "草木蓝",
            "request_id": "0",
            "type": "1",
            "content": "冷路",
            "create_time": "1634896678",
            "is_read": "0",
            "receive_user_id": "12",
            "send_user_id": "10",
            "target": {
                "avatar": "0",
                "nickname": "dsaf"
            }
        }
    }
}
返回参数说明
参数名 类型 说明
send_user_id int 本地用户id
receive_user_id int 本地用户id
receiver_id int 合作方用户id
sender_id int 合作方用户id
is_read int 是否已读;1:已读,0:未读
备注
  • 更多返回错误代码请看首页的错误代码描述