- 后台接口
- 邮件处理器
- 后台部门管理
- 后台菜单管理
- 后台角色管理
- 后台用户管理
- 用户登录
- 个人信息
- 后台字典值管理
- 后台字典管理
- 邮件配置
- 商品管理
- 订单管理
- banner图片管理
- 商城栏目管理
- 会员管理
- 用户收获地址管理
- 评论管理
- 金刚区管理
- 关键字管理
- 商城分类管理
- 优惠券管理
- 前台接口
- 支付接口
- 购物车接口
- 首页接口
- 用户接口
- 商品接口
- 登录相关接口
- 订单接口
- 搜索接口
- 用户地址接口
- 用户评论接口
- 金刚区接口
- 商品分类接口
- 支付成功回调接口
- 退款接口
- 搜索历史接口
- 邮件回调接口
- 下单回调接口
- 未支付订单取消回调
- 优惠券接口
添加评论
POST
/comment
请求参数
Body 参数application/json
id
integer | null
可选
orderGoodsId
integer | null
订单商品项ID
valueId
integer | null
可选
type
integer | null
可选
content
string | null
评论内容
adminContent
string | null
管理员回复内容
userId
integer | null
用户表的用户ID
avatar
string | null
评论用户头像
username
string | null
评论用户名称
hasPicture
boolean | null
可选
picUrls
array[string] | null
可选
star
integer | null
评分, 1-5
createTime
string | null
可选
示例
{
"id": 0,
"orderGoodsId": 0,
"valueId": 0,
"type": 0,
"content": "string",
"adminContent": "string",
"userId": 0,
"avatar": "string",
"username": "string",
"hasPicture": true,
"picUrls": [
"string"
],
"star": 0,
"createTime": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:81/comment' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer | null
可选
msg
string | null
返回消息
data
boolean | null
返回数据
示例
{
"code": 0,
"msg": "",
"data": false
}
修改于 2024-05-17 06:37:34