版权所有©,上海海鼎信息工程股份有限公司,2016-2025,保留所有权利。
1. 接口定义
1.1. 评论服务
1.1.1. 提交订单评价
POST /{tenant_id}/soms/commentservice/comment
1.1.1.1. 说明
提交订单评价
1.1.1.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
order_comment |
订单评价 |
1.1.1.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.1.4. HTTP请求示例
请求 path
/string/soms/commentservice/comment?operator=string
请求 body
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "202012021621",
"store" : {
"id" : "string",
"name" : "string"
},
"time" : "2020-12-02 00:00:00",
"content" : "很好",
"labels" : [ "string" ],
"details" : [ {
"type" : "string",
"score" : 0,
"labels" : [ "string" ]
} ],
"order_id" : "202012021621",
"platform_id" : "jdo2o",
"shop_id" : "213",
"image_urls" : [ "string" ],
"extra_info" : {
"next_time" : "2020-12-02 00:00:00",
"next_content" : "很好",
"delivery_content" : "很好",
"next_image_urls" : "url"
},
"like_skus" : [ "string" ],
"dislike_skus" : [ "string" ],
"expire_time" : "2020-06-17 10:00:00",
"front_comment_id" : "string",
"reply_state" : "string",
"reply_time" : "2020-06-17 10:00:00",
"reply_content" : "string",
"process_state" : "string",
"process_remark" : "string",
"remark" : "string",
"tags" : [ "string" ]
}
1.1.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.2. 查询评价
POST /{tenant_id}/soms/commentservice/comment/query
1.1.2.1. 说明
查询评价
1.1.2.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
倒序 |
boolean |
Query |
page |
页码,从0开始,必须>=0 |
integer (int32) |
Query |
page_size |
分页大小,范围是[1,100] |
integer (int32) |
Query |
sort_key |
排序字段,取值范围:created(创建时间)、commentTime(评价时间) |
string |
Body |
filter |
查询条件 |
1.1.2.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.2.4. HTTP请求示例
请求 path
/string/soms/commentservice/comment/query?desc=true
请求 body
{
"platformIdEq" : "jdo2o",
"stationIdEq" : "string",
"idEq" : "string",
"orderIdIn" : [ "string" ],
"processStateEq" : "string",
"processStateNotIn" : [ "string" ],
"tagEq" : "string",
"tagIn" : [ "string" ],
"tagHas" : [ "string" ],
"orderIdLike" : "32323232323323",
"hasReply" : "invalid",
"satisfieLevel" : "high",
"hasContent" : false,
"commentTimeStart" : "2016-03-02 12:00:01",
"commentTimeEnd" : "2016-03-02 12:00:01",
"id_in" : [ "string" ]
}
1.1.2.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 1,
"comments" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "202012021621",
"store" : {
"id" : "string",
"name" : "string"
},
"time" : "2020-12-02 00:00:00",
"content" : "很好",
"labels" : [ "string" ],
"details" : [ {
"type" : "string",
"score" : 0,
"labels" : [ "string" ]
} ],
"order_id" : "202012021621",
"platform_id" : "jdo2o",
"shop_id" : "213",
"image_urls" : [ "string" ],
"extra_info" : {
"next_time" : "2020-12-02 00:00:00",
"next_content" : "很好",
"delivery_content" : "很好",
"next_image_urls" : "url"
},
"like_skus" : [ "string" ],
"dislike_skus" : [ "string" ],
"expire_time" : "2020-06-17 10:00:00",
"front_comment_id" : "string",
"reply_state" : "string",
"reply_time" : "2020-06-17 10:00:00",
"reply_content" : "string",
"process_state" : "string",
"process_remark" : "string",
"remark" : "string",
"tags" : [ "string" ]
} ],
"page_count" : 5,
"page_size" : 20
}
1.1.3. 获取评价
GET /{tenant_id}/soms/commentservice/comment/{id}
1.1.3.1. 说明
获取评价
1.1.3.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
id |
评论Id |
string |
Path |
tenant_id |
租户ID |
string |
1.1.3.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.3.4. HTTP请求示例
请求 path
/string/soms/commentservice/comment/string
1.1.3.5. HTTP响应示例
响应 200
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "202012021621",
"store" : {
"id" : "string",
"name" : "string"
},
"time" : "2020-12-02 00:00:00",
"content" : "很好",
"labels" : [ "string" ],
"details" : [ {
"type" : "string",
"score" : 0,
"labels" : [ "string" ]
} ],
"order_id" : "202012021621",
"platform_id" : "jdo2o",
"shop_id" : "213",
"image_urls" : [ "string" ],
"extra_info" : {
"next_time" : "2020-12-02 00:00:00",
"next_content" : "很好",
"delivery_content" : "很好",
"next_image_urls" : "url"
},
"like_skus" : [ "string" ],
"dislike_skus" : [ "string" ],
"expire_time" : "2020-06-17 10:00:00",
"front_comment_id" : "string",
"reply_state" : "string",
"reply_time" : "2020-06-17 10:00:00",
"reply_content" : "string",
"process_state" : "string",
"process_remark" : "string",
"remark" : "string",
"tags" : [ "string" ]
}
1.1.4. 更新评价回复
POST /{tenant_id}/soms/commentservice/comment/{id}/reply
1.1.4.1. 说明
更新评价回复
1.1.4.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
id |
评论Id |
string |
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
request |
更新评价回复request |
1.1.4.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.4.4. HTTP请求示例
请求 path
/string/soms/commentservice/comment/string/reply?operator=string
请求 body
{
"reply_content" : "string"
}
1.1.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2. 定义
2.1. ActionResult
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
success |
默认值 : |
boolean |
2.2. IdName
| 名称 | 说明 | 类型 |
|---|---|---|
id |
样例 : |
string |
name |
样例 : |
string |
2.3. OrderComment
订单评价
| 名称 | 说明 | 类型 |
|---|---|---|
content |
评价内容 |
string |
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
details |
评价积分 |
< OrderCommentDetail > array |
dislike_skus |
点踩的商品列表 |
< string > array |
expire_time |
样例 : |
string (date-time) |
extra_info |
评价自定义字段,不同平台不同内容 |
|
front_comment_id |
样例 : |
string |
id |
评价ID |
string |
image_urls |
评价图片 |
< string > array |
labels |
评价标签 |
< string > array |
like_skus |
点赞的商品列表 |
< string > array |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
order_id |
订单ID |
string |
platform_id |
平台ID |
string |
process_remark |
处理说明 |
string |
process_state |
处理状态 |
string |
remark |
备注 |
string |
reply_content |
回复内容 |
string |
reply_state |
回复状态 |
string |
reply_time |
回复时间 |
string (date-time) |
shop_id |
商家ID |
string |
store |
门店 |
|
tags |
标签 |
< string > array |
time |
评价时间 |
string (date-time) |
2.4. OrderCommentDetail
| 名称 | 说明 | 类型 |
|---|---|---|
labels |
评价标签 |
< string > array |
score |
评价得分 |
integer (int32) |
type |
评价类型 |
string |
2.5. OrderCommentFilter
| 名称 | 说明 | 类型 |
|---|---|---|
commentTimeEnd |
评价时间结束,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
commentTimeStart |
评价时间开始,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
hasContent |
是否有评价内容 |
boolean |
hasReply |
回复状态:none、replied、invalid |
string |
idEq |
评价ID |
string |
id_in |
样例 : |
< string > array |
orderIdIn |
订单ID集合 |
< string > array |
orderIdLike |
订单号模糊搜索 |
string |
platformIdEq |
平台ID |
string |
processStateEq |
处理状态:未处理、处理成功、处理失败 |
string |
processStateNotIn |
状态不存在 |
< string > array |
satisfieLevel |
满意程度(low、medium、high) |
string |
stationIdEq |
门店ID |
string |
tagEq |
标签 |
string |
tagHas |
标签包含……必须完全包含 |
< string > array |
tagIn |
标签在……中,包含一个就行 |
< string > array |
2.6. OrderCommentPaging
订单评价分页对象
| 名称 | 说明 | 类型 |
|---|---|---|
comments |
订单评价列表 |
< OrderComment > array |
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
total |
总条数 |
integer (int64) |
2.7. OrderExtraInfo
| 名称 | 说明 | 类型 |
|---|---|---|
delivery_content |
配送评价内容 |
string |
next_content |
追加评价内容 |
string |
next_image_urls |
配送评价图片 |
< string > array |
next_time |
追加评价时间 |
string (date-time) |
2.8. UpdateReplyContentRequest
| 名称 | 说明 | 类型 |
|---|---|---|
reply_content |
回复内容 |
string |