文档
测试

用户查看自己的全部评论

POST
http://localhost:8080/snacks/comment/findCommentByUid

接口描述

用户查看自己的全部评论

请求头

参数名
类型
描述
必填
Authorization
string
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbk5hbWUiOiJsd3oiLCJleHAiOjE1OTI0NjY1NDcsInVzZXJJZCI6IjIxIn0.1iMnzggPKUrxkhnM6UM9ANCXWNpbIie4qd-tKFz61yc
必填

响应参数

参数名
类型
描述
必填
data
object
数据字典
必填
commentList
array
评论集合:数据列表
必填
cid
int
评论id:示例:1
必填
comTime
int
评论时间:示例:1592236480000
必填
content
string
评论内容:示例:这个烤全羊很好吃
必填
product
object
评论的商品对象:数据字典
必填
description
string
商品描述:示例:很香
必填
dprice
float
商品折后价:示例:88.88
必填
picture
string
商品图片:示例:1.jsp
必填
pid
int
商品id:示例:7
必填
pname
string
商品名字:示例:烤全羊
必填
price
float
商品原价:示例:99.99
必填
msg
string
示例:查询成功
必填
statusCode
int
示例:0,0表示成功,小于0表示失败
必填

说明 / 示例

示例返回数据: ```json { "data": { "commentList": [ { "cid": 1, "comTime": 1592236480000, "content": "这个烤全羊很好吃", "product": { "description": "很香", "dprice": 88.88, "picture": "1.jsp", "pid": 7, "pname": "烤全羊", "price": 99.99 } }, { "cid": 3, "comTime": 1592365918000, "content": "这个薯片非常的好吃,非常的脆,下次还买", "product": { "description": "好丽友的薯片真好", "dprice": 4.0, "picture": "aaaa.jpg", "pid": 1, "pname": "好丽友薯片", "price": 5.0 } }, { "cid": 5, "comTime": 1592367740000, "content": "这个薯片非常的好吃,非常的脆,下次还买", "product": { "description": "好丽友的薯片真好", "dprice": 4.0, "picture": "aaaa.jpg", "pid": 1, "pname": "好丽友薯片", "price": 5.0 } }, { "cid": 6, "comTime": 1592367749000, "content": "这个薯片非常的好吃,非常的脆,下次还买", "product": { "description": "好丽友的薯片真好", "dprice": 4.0, "picture": "aaaa.jpg", "pid": 1, "pname": "好丽友薯片", "price": 5.0 } }, { "cid": 10, "comTime": 1592369114000, "content": "这个薯片非常的好吃,非常的脆,下次还买", "product": { "description": "好丽友的薯片真好", "dprice": 4.0, "picture": "aaaa.jpg", "pid": 1, "pname": "好丽友薯片", "price": 5.0 } } ] }, "msg": "查询成功", "statusCode": 0 } ```