医生聊天-查看聊天历史

请求地址: v1/imContent/listImChatHistory/{groupId}

HTTP请求方式: POST

响应结果示例

{
  "ret_code": 0,
  "ret_values": {
    "content": [
      {
        "id": 45, // 聊天id
        "fromWho": 1, // 发送者id
        "type": "User", // 类型 User,Doctor
        "name": "张敏华", // 姓名
        "content": "OK", // 内容
        "groupId": 200136001757118916, // imGroupId
        "sendTime": 1464772866000, // 发送时间
        "avatarUrl": "http://7xp6gb.com2.z0.glb.qiniucdn.com/pci/picture/pic2@2x.png" // 头像
      },
      {
        "id": 44,
        "fromWho": 1,
        "type": "User",
        "name": "张敏华",
        "content": "你好",
        "groupId": 200136001757118916,
        "sendTime": 1464772837000,
        "avatarUrl": "http://7xp6gb.com2.z0.glb.qiniucdn.com/pci/picture/pic2@2x.png"
      },
      {
        "id": 43,
        "fromWho": 2,
        "type": "Doctor",
        "name": "刘二",
        "content": "好",
        "groupId": 200136001757118916,
        "sendTime": 1464772827000,
        "avatarUrl": "http://7xp6gb.com2.z0.glb.qiniucdn.com/pci/picture/pic1@2x.png"
      },
      {
        "id": 42,
        "fromWho": 1,
        "type": "User",
        "name": "张敏华",
        "content": "7家",
        "groupId": 200136001757118916,
        "sendTime": 1464771074000,
        "avatarUrl": "http://7xp6gb.com2.z0.glb.qiniucdn.com/pci/picture/pic2@2x.png"
      },
      {
        "id": 41,
        "fromWho": 1,
        "type": "User",
        "name": "张敏华",
        "content": "哈哈",
        "groupId": 200136001757118916,
        "sendTime": 1464771043000,
        "avatarUrl": "http://7xp6gb.com2.z0.glb.qiniucdn.com/pci/picture/pic2@2x.png"
      },
      {
        "id": 40,
        "fromWho": 2,
        "type": "Doctor",
        "name": "刘二",
        "content": "OK",
        "groupId": 200136001757118916,
        "sendTime": 1464769333000,
        "avatarUrl": "http://7xp6gb.com2.z0.glb.qiniucdn.com/pci/picture/pic1@2x.png"
      },
      {
        "id": 34,
        "fromWho": 2,
        "type": "Doctor",
        "name": "刘二",
        "content": "卡卡卡",
        "groupId": 200136001757118916,
        "sendTime": 1464582632000,
        "avatarUrl": "http://7xp6gb.com2.z0.glb.qiniucdn.com/pci/picture/pic1@2x.png"
      },
      {
        "id": 33,
        "fromWho": 1,
        "type": "User",
        "name": "张敏华",
        "content": "2323\n",
        "groupId": 200136001757118916,
        "sendTime": 1464582620000,
        "avatarUrl": "http://7xp6gb.com2.z0.glb.qiniucdn.com/pci/picture/pic2@2x.png"
      },
      {
        "id": 32,
        "fromWho": 2,
        "type": "Doctor",
        "name": "刘二",
        "content": "还",
        "groupId": 200136001757118916,
        "sendTime": 1464582542000,
        "avatarUrl": "http://7xp6gb.com2.z0.glb.qiniucdn.com/pci/picture/pic1@2x.png"
      },
      {
        "id": 31,
        "fromWho": 1,
        "type": "User",
        "name": "张敏华",
        "content": "444",
        "groupId": 200136001757118916,
        "sendTime": 1464582519000,
        "avatarUrl": "http://7xp6gb.com2.z0.glb.qiniucdn.com/pci/picture/pic2@2x.png"
      }
    ],
    "last": false,
    "totalPages": 4,
    "totalElements": 39,
    "size": 10,
    "number": 0,
    "first": true,
    "sort": [
      {
        "direction": "DESC",
        "property": "lastModifiedDate",
        "ignoreCase": false,
        "nullHandling": "NATIVE",
        "ascending": false
      }
    ],
    "numberOfElements": 10
  },
  "message": "成功"
}

results matching ""

    No results matching ""