文章内容
(1) 请求路径:xxx.com/ SmallProgAPI /Home/GetCommentCountAggregate
(2) 请求参数:
参数名称 | 必填 | 参数值说明 | 格式要求 |
Id | 是 | int | 门店编号 |
(3) 返回值说明:Json格式
返回结果: {"success":true,"msg":"","code":0,"data":{"AllComment":3,"LowComment":0,"MediumComment":0,"HighComment":3,"HasImageComment":1,"AppendComment":2}} |
返回结果参数说明:
字段名称 | 字段编码 | 数据类型 | 是否可空 | 备注 |
差评总数 | LowComment | int | 否 | |
中评总数 | MediumComment | int | 否 | |
好评总数 | HighComment | int | 否 | |
有图总数 | HasImageComment | int | 否 | |
追评总数 | AppendComment | int | 否 | |
评价总数 | AllComment | int | 否 |
(1) 请求路径:xxx.com/ SmallProgAPI /Home/GetComments
(2) 请求参数:
参数名称 | 必填 | 参数值说明 | 格式要求 |
ShopBranchId | 是 | int | 门店编号 |
CommentType | 否 | int | 评价类型 2 差评 3 中评 4 好评 6 有追评 11 有图 |
PageNo | 是 | int | 页码 |
PageSize | 是 | int | 页显示数 |
(3) 返回值说明:Json格式
返回结果: {"success":true,"msg":"",code:0,"data":{"total":1,"rows":[{"UserPhoto":"http://localhost//Storage/Member/395/headImage.jpg","Id":468,"ProductId":825,"ShopId":318,"ShopName":"谢惠春店铺","UserId":395,"UserName":"selleradmin","Email":"305860255@qq.com","ReviewContent":"呵呵呵嘿啊热和热热热","ReviewDate":"2017-04-26T10:51:08","ReplyContent":null,"ReplyDate":null,"ReviewMark":1,"SubOrderId":1320,"AppendContent":null,"AppendDate":null,"ReplyAppendContent":null,"ReplyAppendDate":null,"IsHidden":true,"ProductName":"yu蛋糕","SkuId":"825_19_0_16","SKU":"黄色+200","Images":[{"Id":85,"CommentImage":"/Storage/Plat/Comment/39520170426105009247682.png","CommentId":468,"CommentType":0},{"Id":86,"CommentImage":"/Storage/Plat/Comment/39520170426105034876661.png","CommentId":468,"CommentType":0},{"Id":87,"CommentImage":"/Storage/Plat/Comment/39520170426105044419593.png","CommentId":468,"CommentType":0},{"Id":88,"CommentImage":"/Storage/Plat/Comment/39520170426105053432307.png","CommentId":468,"CommentType":0},{"Id":89,"CommentImage":"/Storage/Plat/Comment/39520170426105103235023.png","CommentId":468,"CommentType":0}]}]}} |
返回结果参数说明:
字段名称 | 字段编码 | 数据类型 | 是否可空 | 备注 |
总数 | total | int | 否 | |
数据列表 | rows | int | 否 |
数据列表 rows
字段名称 | 字段编码 | 数据类型 | 是否可空 | 备注 |
商品名称 | ProductName | string | 否 | |
规格 | SKU | string | 是 | |
用户名 | UserName | string | 否 | |
用户头像 | UserPhoto | string | 是 | |
评价 | ReviewContent | string | 否 | |
评价时间 | ReviewDate | string | 否 | |
评价得分 | ReviewMark | int | 否 | |
追加评价 | AppendContent | string | 是 | |
追加评价时间 | AppendDate | string | 是 | |
回复 | ReplyContent | string | 是 | |
回复时间 | ReplyDate | string | 是 | |
回复追加 | ReplyAppendContent | string | 是 | |
回复追加时间 | ReplyAppendDate | string | 是 | |
图片列表 | Images | json | 是 |
图片列表 Images