POST api/HuoPinWangLai/AddWangLai
添加货品往来记录
Request Information
URI Parameters
None.
Body Parameters
addwanglaiPost| Name | Description | Type | Additional information |
|---|---|---|---|
| type | HuoPinWangLaiType |
None. |
|
| fahuofang | string |
None. |
|
| shouhuofang | string |
None. |
|
| wuliu | string |
None. |
|
| wuliudanhao | string |
None. |
|
| riqi | string |
None. |
|
| imgarr | 数组: integer |
None. |
|
| list | 数组: wanglailogItem |
None. |
|
| tel |
登录账号 |
string |
None. |
| token |
token |
string |
None. |
| uid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"type": 1,
"fahuofang": "sample string 1",
"shouhuofang": "sample string 2",
"wuliu": "sample string 3",
"wuliudanhao": "sample string 4",
"riqi": "sample string 5",
"imgarr": [
1,
2
],
"list": [
{
"productQrcode": "sample string 1",
"count": 1
},
{
"productQrcode": "sample string 1",
"count": 1
}
],
"tel": "sample string 6",
"token": "sample string 7",
"uid": 1
}
application/xml, text/xml
Sample:
<addwanglaiPost 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 6</tel>
<token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 7</token>
<uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid>
<fahuofang>sample string 1</fahuofang>
<imgarr xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</imgarr>
<list>
<wanglailogItem>
<count>1</count>
<productQrcode>sample string 1</productQrcode>
</wanglailogItem>
<wanglailogItem>
<count>1</count>
<productQrcode>sample string 1</productQrcode>
</wanglailogItem>
</list>
<riqi>sample string 5</riqi>
<shouhuofang>sample string 2</shouhuofang>
<type>diaoru</type>
<wuliu>sample string 3</wuliu>
<wuliudanhao>sample string 4</wuliudanhao>
</addwanglaiPost>
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>