POST Message/MessageByType
获取消息列表
Request Information
URI Parameters
None.
Body Parameters
MessageListPars| Name | Description | Type | Additional information |
|---|---|---|---|
| lastOrd |
最后一条ID |
integer |
None. |
| pagenum |
每页数量 |
integer |
None. |
| msg_content_type |
消息类型(1订单相关,2评论/回复,3系统消息,4账户相关,5牙医服务) |
integer |
None. |
| dt |
上次获取数据时间 |
date |
None. |
Request Formats
application/json, text/json
Sample:
{
"code": "200",
"data": {
"lastOrd": 1,
"pagenum": 2,
"msg_content_type": 3,
"dt": "2025-12-10T11:19:14.5651871+08:00"
},
"msg": null
}
application/xml, text/xml
Sample:
<MessageListPars xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HL.Basis.Web.Models.Parameter"> <dt>2025-12-10T11:19:14.5651871+08:00</dt> <lastOrd>1</lastOrd> <msg_content_type>3</msg_content_type> <pagenum>2</pagenum> </MessageListPars>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
获取消息列表
MessageListResult| Name | Description | Type | Additional information |
|---|---|---|---|
| dt |
时间戳 |
date |
None. |
| MessageList |
消息列表 |
Collection of MessageInfoResult |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": "200",
"data": {
"dt": "2025-12-10T11:19:14.5808516+08:00",
"MessageList": [
{
"ord": 1,
"id": 2,
"msg_type": 3,
"msg_content_type": 4,
"msg_img": "sample string 5",
"msg_url": "sample string 6",
"msg_content": "sample string 7",
"msg_desc": "sample string 8",
"create_dt": "2025-12-10T11:19:14.5808516+08:00",
"isnew": 10
},
{
"ord": 1,
"id": 2,
"msg_type": 3,
"msg_content_type": 4,
"msg_img": "sample string 5",
"msg_url": "sample string 6",
"msg_content": "sample string 7",
"msg_desc": "sample string 8",
"create_dt": "2025-12-10T11:19:14.5808516+08:00",
"isnew": 10
}
]
},
"msg": null
}
application/xml, text/xml
Sample:
<MessageListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HL.Basis.Web.Models.Result">
<MessageList>
<MessageInfoResult>
<create_dt>2025-12-10T11:19:14.5808516+08:00</create_dt>
<id>2</id>
<isnew>10</isnew>
<msg_content>sample string 7</msg_content>
<msg_content_type>4</msg_content_type>
<msg_desc>sample string 8</msg_desc>
<msg_img>sample string 5</msg_img>
<msg_type>3</msg_type>
<msg_url>sample string 6</msg_url>
<ord>1</ord>
</MessageInfoResult>
<MessageInfoResult>
<create_dt>2025-12-10T11:19:14.5808516+08:00</create_dt>
<id>2</id>
<isnew>10</isnew>
<msg_content>sample string 7</msg_content>
<msg_content_type>4</msg_content_type>
<msg_desc>sample string 8</msg_desc>
<msg_img>sample string 5</msg_img>
<msg_type>3</msg_type>
<msg_url>sample string 6</msg_url>
<ord>1</ord>
</MessageInfoResult>
</MessageList>
<dt>2025-12-10T11:19:14.5808516+08:00</dt>
</MessageListResult>