GET api/LatestMessages?u={u}&t={t}&d={d}
获取个人最新消息列表
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
u |
[用户ID] |
integer |
Required |
t |
[用户ID]|[用户密码,加密]|[requestTime]|[设备标识],加密 |
string |
Required |
d |
[] |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
获取个人最新消息列表
Collection of LatestMessageName | Description | Type | Additional information |
---|---|---|---|
GroupType |
消息群组类型 |
GroupTypes |
None. |
GroupID |
群组ID |
globally unique identifier |
None. |
GroupName |
群组名称 |
string |
None. |
GroupImgUrl |
群组图标 |
string |
None. |
UnreadAmounts |
未读消息数量 |
integer |
None. |
Content |
最新消息 |
string |
None. |
CreatorID |
最新消息创建人ID |
integer |
None. |
CreatorName |
最新消息创建人名称 |
string |
None. |
Time |
最新消息创建时间 |
date |
None. |
Response Formats
application/json, text/json
Sample:
[ { "GroupType": 0, "GroupID": "e6d12248-5143-438b-8f89-83ed75d1c704", "GroupName": "sample string 2", "GroupImgUrl": "sample string 3", "UnreadAmounts": 4, "Content": "sample string 5", "CreatorID": 6, "CreatorName": "sample string 7", "Time": "2025-05-13T18:59:47.6750019+08:00" }, { "GroupType": 0, "GroupID": "e6d12248-5143-438b-8f89-83ed75d1c704", "GroupName": "sample string 2", "GroupImgUrl": "sample string 3", "UnreadAmounts": 4, "Content": "sample string 5", "CreatorID": 6, "CreatorName": "sample string 7", "Time": "2025-05-13T18:59:47.6750019+08:00" } ]
application/xml, text/xml
Sample:
<ArrayOfLatestMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Care365_V2.Model.IMSys"> <LatestMessage> <Content>sample string 5</Content> <CreatorID>6</CreatorID> <CreatorName>sample string 7</CreatorName> <GroupID>e6d12248-5143-438b-8f89-83ed75d1c704</GroupID> <GroupImgUrl>sample string 3</GroupImgUrl> <GroupName>sample string 2</GroupName> <GroupType>群聊</GroupType> <Time>2025-05-13T18:59:47.6750019+08:00</Time> <UnreadAmounts>4</UnreadAmounts> </LatestMessage> <LatestMessage> <Content>sample string 5</Content> <CreatorID>6</CreatorID> <CreatorName>sample string 7</CreatorName> <GroupID>e6d12248-5143-438b-8f89-83ed75d1c704</GroupID> <GroupImgUrl>sample string 3</GroupImgUrl> <GroupName>sample string 2</GroupName> <GroupType>群聊</GroupType> <Time>2025-05-13T18:59:47.6750019+08:00</Time> <UnreadAmounts>4</UnreadAmounts> </LatestMessage> </ArrayOfLatestMessage>