POST api/Group/SaveUserGroup
添加分组或角色 [手表]
Request Information
Body Parameters
请求参数
SaveUserGroupModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ParentId |
上级分组 id |
integer |
None. |
| GroupName |
角色分组名 |
string |
None. |
| Icon |
角色分组图标 |
string |
None. |
| UserId |
用户 id |
integer |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ParentId": 1,
"GroupName": "sample string 2",
"Icon": "sample string 3",
"UserId": 4,
"Token": "sample string 5",
"Language": "sample string 6",
"AppId": "sample string 7"
}
application/xml, text/xml
Sample:
<SaveUserGroupModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 7</AppId> <Language>sample string 6</Language> <Token>sample string 5</Token> <GroupName>sample string 2</GroupName> <Icon>sample string 3</Icon> <ParentId>1</ParentId> <UserId>4</UserId> </SaveUserGroupModel>
Response Information
Resource Description
State状态码:
0. 表示成功
4000. 表示失败
| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"State": 2
}
application/xml, text/xml
Sample:
<SaveUserGroupResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel"> <State>2</State> <Id>1</Id> </SaveUserGroupResult>