POST api/localTour/comment/publish
發布評論
Request Information
URI Parameters
None.
Body Parameters
CommentContractName | Description | Type | Additional information |
---|---|---|---|
msgid |
留言編號 |
integer |
None. |
memberid |
用戶ID |
integer |
None. |
name |
評論者 |
string |
None. |
nationality |
國藉 |
string |
None. |
ip |
國藉 |
string |
None. |
pid |
關聯ID(訂單號) |
string |
None. |
cid |
關聯ID(主題ID,酒店ID) |
string |
None. |
score |
評分 |
decimal number |
None. |
score1 |
評分 |
decimal number |
None. |
score2 |
評分 |
decimal number |
None. |
score3 |
評分 |
decimal number |
None. |
score4 |
評分 |
decimal number |
None. |
title |
標題 |
string |
None. |
message |
評論內容 |
string |
None. |
filepath |
圖片路徑 |
string |
None. |
publishdate |
發布日期 |
date |
None. |
source |
來源(可選項:tour/hotel) |
string |
None. |
郵件地址 |
string |
None. |
|
author |
發布者名稱 |
string |
None. |
state |
状态(0显示/1不显示) |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "msgid": 1, "memberid": 2, "name": "sample string 3", "nationality": "sample string 4", "ip": "sample string 5", "pid": "sample string 6", "cid": "sample string 7", "score": 8.0, "score1": 9.0, "score2": 10.0, "score3": 11.0, "score4": 12.0, "title": "sample string 13", "message": "sample string 14", "filepath": "sample string 15", "publishdate": "2024-12-23T19:39:01.6041301+08:00", "source": "sample string 17", "Email": "sample string 18", "author": "sample string 19", "state": 20 }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
發布評論
ReturnResultOfBooleanName | Description | Type | Additional information |
---|---|---|---|
data | boolean |
None. |
|
code |
状态码:100成功,其他自定义 |
integer |
None. |
message |
提示消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": true, "code": 2, "message": "sample string 3" }