POST api/v1/Order/MakeComment

[需登录] 评论订单

请求信息(Request)

URI 参数

None.

Body 参数

订单实体

OrderComment
名称描述类型备注
OrderID

订单ID

integer

None.

OrderID1

分类订单ID(如酒店订单、团购或旅游)

integer

None.

ItemID

商品的ID

integer

None.

DealerType

订单类型

DealerType

None.

Comment

评论

string

None.

Rank

评分

decimal number

Range: inclusive between 1 and 5

IsAnonymity

是否匿名

boolean

None.

请求格式

application/json, text/json

Sample:
{
  "OrderID": 1,
  "OrderID1": 2,
  "ItemID": 3,
  "DealerType": 1,
  "Comment": "sample string 4",
  "Rank": 5.1,
  "IsAnonymity": true
}

application/xml, text/xml

Sample:
<OrderComment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs">
  <Comment>sample string 4</Comment>
  <DealerType>Deal</DealerType>
  <IsAnonymity>true</IsAnonymity>
  <ItemID>3</ItemID>
  <OrderID>1</OrderID>
  <OrderID1>2</OrderID1>
  <Rank>5.1</Rank>
</OrderComment>

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 'OrderComment'.

响应信息(Response)

资源描述

RequestResultOfString
名称描述类型备注
Data

string

None.

Status

状态(0:成功,1:失败)

integer

None.

Message

导致失败的相关消息

string

None.

Total

集合总数,用于分页时使用

integer

None.

响应格式

application/json, text/json

Sample:
{
  "Data": "sample string 1",
  "Status": 2,
  "Message": "sample string 3",
  "Total": 4
}

application/xml, text/xml

Sample:
<RequestResultOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application">
  <Message>sample string 3</Message>
  <Status>2</Status>
  <Total>4</Total>
  <Data>sample string 1</Data>
</RequestResultOfstring>