1551934118171352.jpg

文章内容

自助建站门店评价聚合接口
作者:admin | 时间:2020-05-26 13:31:21

(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


 

 

2.11门店评价列表接口

(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

 

字段名称

字段编码

数据类型

是否可空

备注

图片地址

CommentImage