POST api/Group/AddGroup
添加一个group,type->1:部门, 2:仓库,3:店铺
Request Information
URI Parameters
None.
Body Parameters
groupItemPost| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
修改,删除时,id必须 |
integer |
None. |
| name | string |
None. |
|
| fullname |
店铺全称,用于展示给消费者看(如:小程序里 |
string |
None. |
| jiancheng | string |
None. |
|
| address | string |
None. |
|
| stel |
店铺电话 |
string |
None. |
| guhua | string |
None. |
|
| type |
0:全部,1:部门, 2:仓库,3:店铺 ####必填 |
integer |
None. |
| pinpai | string |
None. |
|
| imgarr | 数组: integer |
None. |
|
| tel |
登录账号 |
string |
None. |
| token |
token |
string |
None. |
| uid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 2",
"fullname": "sample string 3",
"jiancheng": "sample string 4",
"address": "sample string 5",
"stel": "sample string 6",
"guhua": "sample string 7",
"type": 8,
"pinpai": "sample string 9",
"imgarr": [
1,
2
],
"tel": "sample string 10",
"token": "sample string 11",
"uid": 1
}
application/xml, text/xml
Sample:
<groupItemPost 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 10</tel>
<token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 11</token>
<uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid>
<address>sample string 5</address>
<fullname>sample string 3</fullname>
<guhua>sample string 7</guhua>
<id>1</id>
<imgarr xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</imgarr>
<jiancheng>sample string 4</jiancheng>
<name>sample string 2</name>
<pinpai>sample string 9</pinpai>
<stel>sample string 6</stel>
<type>8</type>
</groupItemPost>
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>