POST api/PiaoQuan/addPiaoQuan
Request Information
URI Parameters
None.
Body Parameters
addPiaoQuanPost| Name | Description | Type | Additional information |
|---|---|---|---|
| title | string |
None. |
|
| coinCount |
需要多少积分才可以兑换 |
integer |
None. |
| topCoinCount |
到多少积分 |
integer |
None. |
| begindt |
开始时间 |
string |
None. |
| enddt |
结束时间 |
string |
None. |
| type |
20:实物、10:代金券 |
integer |
None. |
| amount |
代金券面值 |
integer |
None. |
| name | string |
None. |
|
| tel |
登录账号 |
string |
None. |
| token |
token |
string |
None. |
| uid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"title": "sample string 1",
"coinCount": 2,
"topCoinCount": 3,
"begindt": "sample string 4",
"enddt": "sample string 5",
"type": 1,
"amount": 1,
"name": "sample string 6",
"tel": "sample string 7",
"token": "sample string 8",
"uid": 1
}
application/xml, text/xml
Sample:
<addPiaoQuanPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers"> <tel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 7</tel> <token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 8</token> <uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid> <amount>1</amount> <begindt>sample string 4</begindt> <coinCount>2</coinCount> <enddt>sample string 5</enddt> <name>sample string 6</name> <title>sample string 1</title> <topCoinCount>3</topCoinCount> <type>1</type> </addPiaoQuanPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseResult| Name | Description | Type | Additional information |
|---|---|---|---|
| code |
状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在... |
integer |
None. |
| msg |
成功或者错误的说明,例如:登录成功,token过期... |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"msg": "sample string 2"
}
application/xml, text/xml
Sample:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models"> <code>1</code> <msg>sample string 2</msg> </BaseResult>