POST city/v3/RoleWeb/RoleAddOrUpdate

编辑角色 【k2.6】

Request

URI Params

None.

Body Params

角色Model

RoleWebModel
字段名字段说明字段类型附加信息
Id

Id

integer

None.

Name

名称

string

None.

DutyIds

职责任务编号

Collection of integer

None.

DutyNames

职责任务名称

string

None.

UnitType

适用单位类型

UnitType

None.

UnitTypeDesc

适用单位类型描述

string

None.

ApplyOrgLevel

适用单位层级

RegionLevel

None.

ApplyOrgLevelDesc

适用单位层级描述

string

None.

OrgBusinessTypes

单位业务领域

Collection of integer

None.

OrgBusinessTypesDesc

单位业务领域描述

string

None.

IsStandard

是否标准角色

EnumIsStatus

None.

MenuList

菜单权限

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "1",
  "Name": "sample string 2",
  "DutyIds": [
    "1",
    "2"
  ],
  "DutyNames": ",",
  "UnitType": 1,
  "UnitTypeDesc": "单位",
  "ApplyOrgLevel": 0,
  "ApplyOrgLevelDesc": "全部",
  "OrgBusinessTypes": [
    "1",
    "2"
  ],
  "OrgBusinessTypesDesc": "政法委,公安局",
  "IsStandard": 0,
  "MenuList": [
    "sample string 1",
    "sample string 2"
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RoleWebModel'.

Response

APITResultOfString
字段名字段说明字段类型附加信息
Data

string

None.

Ret

返回结果(0-成功;>0-失败) ret=0 成功返回/ret=1 参数错误/ret=2 频率受限 /ret=3 Token无效 /ret=4 服务器内部错误 /ret=5 用户操作错误 / ret=6 停机维护 / ret=7 身份失效

integer

None.

ErrCode

错误代码,因功能而异

integer

None.

Msg

返回信息

string

None.

SeqId

请求序列

integer

None.

InfoMsg

API附加信息

string

None.

application/json, text/json

Sample:
{
  "Data": "sample string 1",
  "Ret": 2,
  "ErrCode": 3,
  "Msg": "sample string 4",
  "SeqId": 5,
  "InfoMsg": "sample string 6"
}