GET api/BroadcastV720/ChatRoomList?page={page}&pagesize={pagesize}&topicid={topicid}
获取聊天记录
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| page | integer |
Default value is 1 |
|
| pagesize | integer |
Default value is 10 |
|
| topicid | integer |
Default value is 3 |
Body Parameters
None.
Response Information
Resource Description
ZaiMieApp.WebApi.ViewModel.ResultDataOfZaiMieApp.WebApi.ViewModel.ChatRoomView| Name | Description | Type | Additional information |
|---|---|---|---|
| recordsetCount | integer |
None. |
|
| pageSize | integer |
None. |
|
| page | integer |
None. |
|
| allPage | integer |
None. |
|
| message | string |
None. |
|
| success | boolean |
None. |
|
| code | integer |
None. |
|
| data | Collection of ZaiMieApp.WebApi.ViewModel.ChatRoomView |
None. |
Response Formats
application/json, text/json
Sample:
{
"recordsetCount": 1,
"pageSize": 2,
"page": 3,
"allPage": 4,
"message": "sample string 5",
"success": true,
"code": 7,
"data": [
{
"Id": 1,
"nickName": "sample string 2",
"headerImg": "sample string 3",
"content": "sample string 4",
"createDate": "2026-09-02T18:26:20.2035061+08:00",
"replyChatView": {
"nickName": "sample string 1",
"content": "sample string 2",
"createDate": "2026-09-02T18:26:20.2035061+08:00"
}
},
{
"Id": 1,
"nickName": "sample string 2",
"headerImg": "sample string 3",
"content": "sample string 4",
"createDate": "2026-09-02T18:26:20.2035061+08:00",
"replyChatView": {
"nickName": "sample string 1",
"content": "sample string 2",
"createDate": "2026-09-02T18:26:20.2035061+08:00"
}
}
]
}
application/xml, text/xml
Sample:
<ResultDataOfChatRoomViewPr2Hy9OI xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
<allPage>4</allPage>
<code>7</code>
<data>
<ChatRoomView>
<Id>1</Id>
<content>sample string 4</content>
<createDate>2026-09-02T18:26:20.2035061+08:00</createDate>
<headerImg>sample string 3</headerImg>
<nickName>sample string 2</nickName>
<replyChatView>
<content>sample string 2</content>
<createDate>2026-09-02T18:26:20.2035061+08:00</createDate>
<nickName>sample string 1</nickName>
</replyChatView>
</ChatRoomView>
<ChatRoomView>
<Id>1</Id>
<content>sample string 4</content>
<createDate>2026-09-02T18:26:20.2035061+08:00</createDate>
<headerImg>sample string 3</headerImg>
<nickName>sample string 2</nickName>
<replyChatView>
<content>sample string 2</content>
<createDate>2026-09-02T18:26:20.2035061+08:00</createDate>
<nickName>sample string 1</nickName>
</replyChatView>
</ChatRoomView>
</data>
<message>sample string 5</message>
<page>3</page>
<pageSize>2</pageSize>
<recordsetCount>1</recordsetCount>
<success>true</success>
</ResultDataOfChatRoomViewPr2Hy9OI>