商品评论

# 接口文档 -商品评论 ## 说明 ``` ``` ### 请求参数 | 参数 | 说明 | 类型 | 备注 | 是否必填 | | ------- | -------- | ------ | ------------------- | -------- | | _handle | 处理类 | string | 固定值:CommentPage | 是 | | _method | 处理方法 | string | 固定值:AddComment| 是 | | token | 令牌 | string | | 是 | | xy_order_id | 订单id | string | | 是 | | xy_comment_type | 评论类型 | int 0 | 0 好评 1 中评 2 差评| 是 | | xy_comment_content | string |商品评论内容| #### 请求地址 ``` 定制商城站域名/api/index/ ``` ##### 返回值 ```json { "code": 1, "msg": "succeed", "data": [ { } ] } ``` # 接口文档 -获取商品评论 ## 说明 ``` ``` ### 请求参数 | 参数 | 说明 | 类型 | 备注 | 是否必填 | | ------- | -------- | ------ | ------------------- | -------- | | _handle | 处理类 | string | 固定值:CommentPage | 是 | | _method | 处理方法 | string | 固定值:GetCommentList| 是 | | xy_goods_id | 商品id | string | 传 xy_goods_id 查商品的评论 | 否 | | xy_good_order | 商品id | string | 传 xy_good_order 查订单的评论 | 否 | #### 请求地址 ``` 定制商城站域名/api/index/ ``` ##### 返回值 ```json { "code": 1, "msg": "succeed", "data": [ { "xy_uid": 10001,// 玩家id "xy_uname": "xx123",// 玩家名称 "xy_vip":{ "xy_nickname":"xykj000", "xy_userface":"http://172.168.1.111:10004/api/skin/img/use-img.jpg" }, "xy_comment_type": 0,// 0 好评 1 中评 2 差评 "xy_comment_content":"xxxx",// 评论内容 "xy_comment_time": "2020-08-09",//评论时间 } ] } ``` # 删除评论 ## 请求地址 ``` 域名/api/index/ ``` ### 请求参数 | 参数 | 说明 | 类型 | 备注 | 是否必填 | |---------|----------|--------|----------|----------| | _handle | 处理类 | string | CommentPage| 是 | | _method | 处理方法 | string | DelComment| 是 | | xy_order_id | 订单号 | string | | 是 | ### 请求响应 ``` json { "code":1, "data":[], "msg":"", } ```