POST api/Consult/ChatViewList

用户/专家消息记录 必填参数【Token,UserId,pagesize,page,UserType,AnswerId】

Request Information

URI Parameters

None.

Body Parameters

UserType=2,获取全部咨询聊天记录;时UserType=1时,获取专家的咨询聊天记录 UserType=0时,获取用户的咨询聊天记录 ; AnswerId 咨询消息列表中的AnswerId

QueryParameter
NameDescriptionTypeAdditional information
OrderByType

1 按利率 2按金额 3 按贷款年限

integer

None.

UserType

用户类型 0-用户 1-专家

integer

None.

page

页码

integer

None.

pagesize

页码条数

integer

None.

LabelIds

选择的标签Id:用,隔开 最多3个

string

None.

ExpertId

专家Id

integer

None.

Status

状态

string

None.

ProType

发布类型 0-咨询 1-需求

integer

None.

OrderType

订单类型 0-用户咨询订单,1-专家咨询订单,2-用户购买提问次数订单,3-用户历史问题购买,4-委托合同订单,5-资讯购买订单

string

None.

ContractType

合同类型 0-普通委托合同,1-赎楼委托合同, 2-评估委托合同, 3-注册委托合同

string

None.

ContractId

合同Id

integer

None.

AnswerId

回答Id

integer

None.

UserId

用户编号

string

None.

Token

Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderByType": 1,
  "UserType": 2,
  "page": 3,
  "pagesize": 4,
  "LabelIds": "sample string 5",
  "ExpertId": 6,
  "Status": "sample string 7",
  "ProType": 8,
  "OrderType": "sample string 9",
  "ContractType": "sample string 10",
  "ContractId": 11,
  "AnswerId": 12,
  "UserId": "sample string 13",
  "Token": "sample string 14"
}

application/xml, text/xml

Sample:
<QueryParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WeiXin.WebAPI.Models.ConsultModels">
  <Token>sample string 14</Token>
  <UserId>sample string 13</UserId>
  <AnswerId>12</AnswerId>
  <ContractId>11</ContractId>
  <ContractType>sample string 10</ContractType>
  <ExpertId>6</ExpertId>
  <LabelIds>sample string 5</LabelIds>
  <OrderByType>1</OrderByType>
  <OrderType>sample string 9</OrderType>
  <ProType>8</ProType>
  <Status>sample string 7</Status>
  <UserType>2</UserType>
  <page>3</page>
  <pagesize>4</pagesize>
</QueryParameter>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'QueryParameter'.

Response Information

Resource Description

用户/专家消息记录 必填参数【Token,UserId,pagesize,page,UserType,AnswerId】

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.