POST api/GetMessageHistory

获取当前对话的历史记录

Request Information

URI Parameters

None.

Body Parameters

IMOnlineB2BMessageInfo_Page
NameDescriptionTypeAdditional information
PageIndex

integer

None.

PageSize

integer

None.

WriteTime

消息发送时间

date

None.

IsRead

是否已读 1 已读 0 未读

integer

None.

SendFromType

从哪方发出 0 客户 1 供应商

integer

None.

fromCompanyID

发送人公司id(如果代理则为代理公司)

integer

None.

fromOwnCompanyID

发送人本公司id

integer

None.

toCompanyID

接收人公司id

integer

None.

MessageUId

string

None.

toGroupId

string

None.

content

string

None.

isMentioned

integer

None.

Writetime

date

None.

B2BUserID

string

None.

DelFlag

integer

None.

fromUserId

发送人用户 融云 userid

string

None.

toUserId

接收用户 融云 ID(可以实现向多人发送消息)

string

None.

objectName

消息类型

string

None.

message

发送消息(普通消息)

MessageContent

None.

modelMessage

发送消息(模板消息)

MessageModelContent

None.

isIncludeSender

指定消息发送者是否可在客户端接收该消息 0,默认值,表示不接收。发送者的客户端无法获取该条已发消息 1,表示接收

integer

None.

groupID

群聊id

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PageIndex": 1,
  "PageSize": 2,
  "WriteTime": "2026-04-05 22:29:58",
  "IsRead": 4,
  "SendFromType": 5,
  "fromCompanyID": 6,
  "fromOwnCompanyID": 7,
  "toCompanyID": 8,
  "MessageUId": "sample string 9",
  "toGroupId": "sample string 10",
  "content": "sample string 11",
  "isMentioned": 12,
  "Writetime": "2026-04-05 22:29:58",
  "B2BUserID": "sample string 14",
  "DelFlag": 15,
  "fromUserId": "sample string 16",
  "toUserId": "sample string 17",
  "objectName": "sample string 18",
  "message": {
    "content": "sample string 1"
  },
  "modelMessage": {
    "OrderID": "sample string 1",
    "SellCompanyName": "sample string 2"
  },
  "isIncludeSender": 19,
  "groupID": "sample string 20"
}

application/xml, text/xml

Sample:
<IMOnlineB2BMessageInfo_Page xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JR.SAAS.Models.IMOnlien">
  <fromUserId>sample string 16</fromUserId>
  <groupID>sample string 20</groupID>
  <isIncludeSender>19</isIncludeSender>
  <message>
    <content>sample string 1</content>
  </message>
  <modelMessage>
    <OrderID>sample string 1</OrderID>
    <SellCompanyName>sample string 2</SellCompanyName>
  </modelMessage>
  <objectName>sample string 18</objectName>
  <toUserId>sample string 17</toUserId>
  <B2BUserID>sample string 14</B2BUserID>
  <DelFlag>15</DelFlag>
  <IsRead>4</IsRead>
  <MessageUId>sample string 9</MessageUId>
  <SendFromType>5</SendFromType>
  <WriteTime>2026-04-05T22:29:58.7811718+08:00</WriteTime>
  <Writetime>2026-04-05T22:29:58.7811718+08:00</Writetime>
  <content>sample string 11</content>
  <fromCompanyID>6</fromCompanyID>
  <fromOwnCompanyID>7</fromOwnCompanyID>
  <isMentioned>12</isMentioned>
  <toCompanyID>8</toCompanyID>
  <toGroupId>sample string 10</toGroupId>
  <PageIndex>1</PageIndex>
  <PageSize>2</PageSize>
</IMOnlineB2BMessageInfo_Page>

Response Information

Resource Description

获取当前对话的历史记录

ApiRet
NameDescriptionTypeAdditional information
RetCode

状态码

string

None.

RetMsg

状态描述

string

None.

Message

数据实体

Object

None.

Total

查询结果所有页的总条数

integer

None.

TotalPage

总页数

integer

None.

Redirect

需重定向的地址

string

None.

FieldStr

列表字段管理

Object

None.

CurrentTime

当前时间

date

None.

IDX

主键

integer

None.

DelFlag

删除标识 0未删除 1:已删除

integer

None.

PageIndex

列表请求参数

integer

None.

PageSize

列表请求参数

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "RetCode": "sample string 1",
  "RetMsg": "sample string 2",
  "Message": {},
  "Total": 4,
  "TotalPage": 5,
  "Redirect": "sample string 6",
  "FieldStr": {},
  "CurrentTime": "2026-04-05 22:29:58",
  "IDX": 9,
  "DelFlag": 10,
  "PageIndex": 11,
  "PageSize": 12
}

application/xml, text/xml

Sample:
<ApiRet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JR.SAAS.Models.Common">
  <_x003C_DelFlag_x003E_k__BackingField>10</_x003C_DelFlag_x003E_k__BackingField>
  <_x003C_IDX_x003E_k__BackingField>9</_x003C_IDX_x003E_k__BackingField>
  <_x003C_PageIndex_x003E_k__BackingField>11</_x003C_PageIndex_x003E_k__BackingField>
  <_x003C_PageSize_x003E_k__BackingField>12</_x003C_PageSize_x003E_k__BackingField>
  <CurrentTime>2026-04-05T22:29:58.7968005+08:00</CurrentTime>
  <FieldStr />
  <Message />
  <Redirect>sample string 6</Redirect>
  <RetCode>sample string 1</RetCode>
  <RetMsg>sample string 2</RetMsg>
  <Total>4</Total>
  <TotalPage>5</TotalPage>
</ApiRet>