POST api/Group/ToNormalGroup

恢复正常,id必须,type不需要

Request Information

URI Parameters

None.

Body Parameters

groupPost
NameDescriptionTypeAdditional information
type

0:全部,1:部门, 2:仓库,3:店铺,23:仓库和店铺 (根据id查询的时候,不填)

integer

None.

id

id,查询group详情的时候,必填

integer

None.

status

不填写,代表不区分状态。1:正常。3:停用。

integer

None.

dianyuanLimit

1:限制。0或者为空:不限制。 店员限制只看自己的店铺和大仓(默认为不限制,通讯录要传递这个参数。)

integer

None.

tel

登录账号

string

None.

token

token

string

None.

uid

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "type": 1,
  "id": 2,
  "status": 1,
  "dianyuanLimit": 1,
  "tel": "sample string 3",
  "token": "sample string 4",
  "uid": 1
}

application/xml, text/xml

Sample:
<groupPost 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 3</tel>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 4</token>
  <uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid>
  <dianyuanLimit>1</dianyuanLimit>
  <id>2</id>
  <status>1</status>
  <type>1</type>
</groupPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResult
NameDescriptionTypeAdditional 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>