POST api/common/savefeedback

留言反馈

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

FeedbackModel
名称说明数据类型附加信息
CustId

客户id

integer

None.

Content

内容

string

Required

Max length: 500

Person

称呼 为空时代表匿名

string

None.

Link

联系方式

string

Required

IsPublic

是否公开

boolean

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "CustId": 1,
  "Content": "sample string 1",
  "Person": "sample string 2",
  "Link": "sample string 3",
  "IsPublic": true,
  "City": "sample string 5",
  "Token": "sample string 6",
  "Platform": "sample string 7"
}

application/xml, text/xml

示例:
<FeedbackModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Common">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 7</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 6</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 5</City>
  <Content>sample string 1</Content>
  <CustId>1</CustId>
  <IsPublic>true</IsPublic>
  <Link>sample string 3</Link>
  <Person>sample string 2</Person>
</FeedbackModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

BaseResult
名称说明数据类型附加信息
ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">
  <ErrorCode>SUCCESS</ErrorCode>
  <Msg>sample string 1</Msg>
</BaseResult>