GET api/v1/Common/GetComments?id={id}&type={type}&pageIndex={pageIndex}&pageCount={pageCount}
获取评论列表
请求信息(Request)
URI 参数
| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| id |
商品ID |
integer |
Required |
| type |
类型(团购、酒店、旅游) |
DealerType |
Required |
| pageIndex |
分页索引,从 0 开始 |
integer |
Default value is 0 |
| pageCount |
每页条目数量,默认每页 10 条 |
integer |
Default value is 10 |
Body 参数
None.
响应信息(Response)
资源描述
团购商品列表
RequestResultOfIEnumerableOfCommentDTO| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| Data | CommentDTO 集合 |
None. |
|
| Status |
状态(0:成功,1:失败) |
integer |
None. |
| Message |
导致失败的相关消息 |
string |
None. |
| Total |
集合总数,用于分页时使用 |
integer |
None. |
响应格式
application/json, text/json
Sample:
{
"Data": [
{
"ID": 1,
"ItemID": 2,
"ItemName": "sample string 3",
"OrderID": 4,
"OrderID1": 5,
"OrderType": 1,
"UserType": 0,
"UserID": 6,
"UserName": "sample string 7",
"UserHead": "sample string 8",
"Content": "sample string 9",
"Rank": 10.1,
"FullPathImages": [
"sample string 1",
"sample string 2"
],
"CreateTime": "2025-11-06T04:21:32.7007743+08:00",
"IsAnonymity": true,
"SpecificationName": "sample string 13",
"ReplyContent": "sample string 14",
"ReplyTime": "2025-11-06T04:21:32.7007743+08:00",
"ReplyUserType": 0,
"ReplyUserId": 1,
"ReplyUserName": "sample string 15",
"InRecycleBin": true,
"IsBoutique": true
},
{
"ID": 1,
"ItemID": 2,
"ItemName": "sample string 3",
"OrderID": 4,
"OrderID1": 5,
"OrderType": 1,
"UserType": 0,
"UserID": 6,
"UserName": "sample string 7",
"UserHead": "sample string 8",
"Content": "sample string 9",
"Rank": 10.1,
"FullPathImages": [
"sample string 1",
"sample string 2"
],
"CreateTime": "2025-11-06T04:21:32.7007743+08:00",
"IsAnonymity": true,
"SpecificationName": "sample string 13",
"ReplyContent": "sample string 14",
"ReplyTime": "2025-11-06T04:21:32.7007743+08:00",
"ReplyUserType": 0,
"ReplyUserId": 1,
"ReplyUserName": "sample string 15",
"InRecycleBin": true,
"IsBoutique": true
}
],
"Status": 1,
"Message": "sample string 2",
"Total": 3
}
application/xml, text/xml
Sample:
<RequestResultOfArrayOfCommentDTO6NgmDdgv xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application">
<Message>sample string 2</Message>
<Status>1</Status>
<Total>3</Total>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs">
<d2p1:CommentDTO>
<d2p1:Content>sample string 9</d2p1:Content>
<d2p1:CreateTime>2025-11-06T04:21:32.7007743+08:00</d2p1:CreateTime>
<d2p1:FullPathImages xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</d2p1:FullPathImages>
<d2p1:ID>1</d2p1:ID>
<d2p1:InRecycleBin>true</d2p1:InRecycleBin>
<d2p1:IsAnonymity>true</d2p1:IsAnonymity>
<d2p1:IsBoutique>true</d2p1:IsBoutique>
<d2p1:ItemID>2</d2p1:ItemID>
<d2p1:ItemName>sample string 3</d2p1:ItemName>
<d2p1:OrderID>4</d2p1:OrderID>
<d2p1:OrderID1>5</d2p1:OrderID1>
<d2p1:OrderType>Deal</d2p1:OrderType>
<d2p1:Rank>10.1</d2p1:Rank>
<d2p1:ReplyContent>sample string 14</d2p1:ReplyContent>
<d2p1:ReplyTime>2025-11-06T04:21:32.7007743+08:00</d2p1:ReplyTime>
<d2p1:ReplyUserId>1</d2p1:ReplyUserId>
<d2p1:ReplyUserName>sample string 15</d2p1:ReplyUserName>
<d2p1:ReplyUserType>WlifeAdmin</d2p1:ReplyUserType>
<d2p1:SpecificationName>sample string 13</d2p1:SpecificationName>
<d2p1:UserHead>sample string 8</d2p1:UserHead>
<d2p1:UserID>6</d2p1:UserID>
<d2p1:UserName>sample string 7</d2p1:UserName>
<d2p1:UserType>WlifeAdmin</d2p1:UserType>
</d2p1:CommentDTO>
<d2p1:CommentDTO>
<d2p1:Content>sample string 9</d2p1:Content>
<d2p1:CreateTime>2025-11-06T04:21:32.7007743+08:00</d2p1:CreateTime>
<d2p1:FullPathImages xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</d2p1:FullPathImages>
<d2p1:ID>1</d2p1:ID>
<d2p1:InRecycleBin>true</d2p1:InRecycleBin>
<d2p1:IsAnonymity>true</d2p1:IsAnonymity>
<d2p1:IsBoutique>true</d2p1:IsBoutique>
<d2p1:ItemID>2</d2p1:ItemID>
<d2p1:ItemName>sample string 3</d2p1:ItemName>
<d2p1:OrderID>4</d2p1:OrderID>
<d2p1:OrderID1>5</d2p1:OrderID1>
<d2p1:OrderType>Deal</d2p1:OrderType>
<d2p1:Rank>10.1</d2p1:Rank>
<d2p1:ReplyContent>sample string 14</d2p1:ReplyContent>
<d2p1:ReplyTime>2025-11-06T04:21:32.7007743+08:00</d2p1:ReplyTime>
<d2p1:ReplyUserId>1</d2p1:ReplyUserId>
<d2p1:ReplyUserName>sample string 15</d2p1:ReplyUserName>
<d2p1:ReplyUserType>WlifeAdmin</d2p1:ReplyUserType>
<d2p1:SpecificationName>sample string 13</d2p1:SpecificationName>
<d2p1:UserHead>sample string 8</d2p1:UserHead>
<d2p1:UserID>6</d2p1:UserID>
<d2p1:UserName>sample string 7</d2p1:UserName>
<d2p1:UserType>WlifeAdmin</d2p1:UserType>
</d2p1:CommentDTO>
</Data>
</RequestResultOfArrayOfCommentDTO6NgmDdgv>