POST api/Mobile/GetChatHistory?ProductId={ProductId}&FkId={FkId}&TargetId={TargetId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductId |
产品ID |
string |
Required |
| FkId |
自己ID |
string |
Default value is |
| TargetId |
聊天对象ID |
string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
ResponseModelOfListOfChatHistory| Name | Description | Type | Additional information |
|---|---|---|---|
| rows | Collection of ChatHistory |
None. |
|
| total | integer |
None. |
|
| errorMsg | string |
None. |
|
| errorCode | string |
None. |
|
| records | integer |
None. |
|
| page | integer |
None. |
|
| extend | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"rows": [
{
"Id": 1,
"FkId": "sample string 2",
"FkNickname": "sample string 3",
"FkRole": 1,
"TargetId": "sample string 4",
"TargetNickname": "sample string 5",
"TargetRole": 1,
"ChatTime": "2025-12-11T23:21:30.1279967+08:00",
"ChatContent": "sample string 6",
"ProductId": "sample string 7",
"ChatType": 8,
"CreateTime": "2025-12-11T23:21:30.1279967+08:00",
"ContentType": 1
},
{
"Id": 1,
"FkId": "sample string 2",
"FkNickname": "sample string 3",
"FkRole": 1,
"TargetId": "sample string 4",
"TargetNickname": "sample string 5",
"TargetRole": 1,
"ChatTime": "2025-12-11T23:21:30.1279967+08:00",
"ChatContent": "sample string 6",
"ProductId": "sample string 7",
"ChatType": 8,
"CreateTime": "2025-12-11T23:21:30.1279967+08:00",
"ContentType": 1
}
],
"total": 1,
"errorMsg": "sample string 2",
"errorCode": "sample string 3",
"records": 4,
"page": 1,
"extend": {}
}
application/xml, text/xml
Sample:
<ResponseModelOfArrayOfChatHistorynltYOC6F xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YCloud.Rcp.Entity.WebResponse">
<errorCode>sample string 3</errorCode>
<errorMsg>sample string 2</errorMsg>
<extend />
<page>1</page>
<records>4</records>
<rows xmlns:d2p1="http://schemas.datacontract.org/2004/07/YCloud.Rcp.Entity.RcpWeb">
<d2p1:ChatHistory>
<d2p1:ChatContent>sample string 6</d2p1:ChatContent>
<d2p1:ChatTime>2025-12-11T23:21:30.1279967+08:00</d2p1:ChatTime>
<d2p1:ChatType>8</d2p1:ChatType>
<d2p1:ContentType>1</d2p1:ContentType>
<d2p1:CreateTime>2025-12-11T23:21:30.1279967+08:00</d2p1:CreateTime>
<d2p1:FkId>sample string 2</d2p1:FkId>
<d2p1:FkNickname>sample string 3</d2p1:FkNickname>
<d2p1:FkRole>1</d2p1:FkRole>
<d2p1:Id>1</d2p1:Id>
<d2p1:ProductId>sample string 7</d2p1:ProductId>
<d2p1:TargetId>sample string 4</d2p1:TargetId>
<d2p1:TargetNickname>sample string 5</d2p1:TargetNickname>
<d2p1:TargetRole>1</d2p1:TargetRole>
</d2p1:ChatHistory>
<d2p1:ChatHistory>
<d2p1:ChatContent>sample string 6</d2p1:ChatContent>
<d2p1:ChatTime>2025-12-11T23:21:30.1279967+08:00</d2p1:ChatTime>
<d2p1:ChatType>8</d2p1:ChatType>
<d2p1:ContentType>1</d2p1:ContentType>
<d2p1:CreateTime>2025-12-11T23:21:30.1279967+08:00</d2p1:CreateTime>
<d2p1:FkId>sample string 2</d2p1:FkId>
<d2p1:FkNickname>sample string 3</d2p1:FkNickname>
<d2p1:FkRole>1</d2p1:FkRole>
<d2p1:Id>1</d2p1:Id>
<d2p1:ProductId>sample string 7</d2p1:ProductId>
<d2p1:TargetId>sample string 4</d2p1:TargetId>
<d2p1:TargetNickname>sample string 5</d2p1:TargetNickname>
<d2p1:TargetRole>1</d2p1:TargetRole>
</d2p1:ChatHistory>
</rows>
<total>1</total>
</ResponseModelOfArrayOfChatHistorynltYOC6F>