POST api/Beilv/AddBeilv
添加一条倍率设置,天气倍率和节日倍率都必须传递。如果天气倍率不修改。就传递1
Request Information
URI Parameters
None.
Body Parameters
addBeilvPost| Name | Description | Type | Additional information |
|---|---|---|---|
| actionDt |
时间 |
string |
None. |
| type | BeiLvType |
None. |
|
| jieRiBeiLv | decimal number |
None. |
|
| tianqiBeiLv | decimal number |
None. |
|
| remarks | string |
None. |
|
| groupid |
店铺id,如果不传递代表对所有店铺生效。 |
数组: integer |
None. |
| tel |
登录账号 |
string |
None. |
| token |
token |
string |
None. |
| uid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"actionDt": "sample string 1",
"type": 1,
"jieRiBeiLv": 2.1,
"tianqiBeiLv": 3.1,
"remarks": "sample string 4",
"groupid": [
1,
2
],
"tel": "sample string 5",
"token": "sample string 6",
"uid": 1
}
application/xml, text/xml
Sample:
<addBeilvPost 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 5</tel>
<token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 6</token>
<uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid>
<actionDt>sample string 1</actionDt>
<groupid xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</groupid>
<jieRiBeiLv>2.1</jieRiBeiLv>
<remarks>sample string 4</remarks>
<tianqiBeiLv>3.1</tianqiBeiLv>
<type>day</type>
</addBeilvPost>
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>