POST new/userperm/addoredit
新增/修改职员权限
Request Information
URI Parameters
None.
Body Parameters
UserPermSaveRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
目标用户 ID。 |
integer |
None. |
| userPermEntities |
权限实体列表。 |
Collection of UserPermEntity |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"userPermEntities": [
{
"Id": 1,
"UserId": 2,
"BusId": 3,
"TypeId": 4,
"UserType": 5,
"CreateUser": 6,
"OrgCode": 7.0,
"OrgId": 8,
"IsDel": true,
"BusName": "sample string 10"
},
{
"Id": 1,
"UserId": 2,
"BusId": 3,
"TypeId": 4,
"UserType": 5,
"CreateUser": 6,
"OrgCode": 7.0,
"OrgId": 8,
"IsDel": true,
"BusName": "sample string 10"
}
]
}
application/xml, text/xml
Sample:
<UserPermSaveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ma.Api.Controllers.Dtos">
<UserId>1</UserId>
<UserPermEntities xmlns:d2p1="http://schemas.datacontract.org/2004/07/ma.Model.EntityModel.UserPerm">
<d2p1:UserPermEntity>
<d2p1:BusId>3</d2p1:BusId>
<d2p1:BusName>sample string 10</d2p1:BusName>
<d2p1:CreateUser>6</d2p1:CreateUser>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsDel>true</d2p1:IsDel>
<d2p1:OrgCode>7</d2p1:OrgCode>
<d2p1:OrgId>8</d2p1:OrgId>
<d2p1:TypeId>4</d2p1:TypeId>
<d2p1:UserId>2</d2p1:UserId>
<d2p1:UserType>5</d2p1:UserType>
</d2p1:UserPermEntity>
<d2p1:UserPermEntity>
<d2p1:BusId>3</d2p1:BusId>
<d2p1:BusName>sample string 10</d2p1:BusName>
<d2p1:CreateUser>6</d2p1:CreateUser>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsDel>true</d2p1:IsDel>
<d2p1:OrgCode>7</d2p1:OrgCode>
<d2p1:OrgId>8</d2p1:OrgId>
<d2p1:TypeId>4</d2p1:TypeId>
<d2p1:UserId>2</d2p1:UserId>
<d2p1:UserType>5</d2p1:UserType>
</d2p1:UserPermEntity>
</UserPermEntities>
</UserPermSaveRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApiDataResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Ok |
接口是否成功。 |
boolean |
None. |
| Data |
返回数据。 |
Object |
None. |
| Msg |
返回消息。 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Ok": true,
"Data": {},
"Msg": "sample string 3"
}
application/xml, text/xml
Sample:
<ApiDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ma.Api.Controllers.Dtos"> <Data /> <Msg>sample string 3</Msg> <Ok>true</Ok> </ApiDataResponse>