POST city/v3/RoleWeb/GetPage

分页获取角色 【k2.5】

Request

URI Params

None.

Body Params

GetPageModelOfRoleSearchWebModel
字段名字段说明字段类型附加信息
PageIndex

integer

None.

PageSize

integer

None.

Search

RoleSearchWebModel

None.

Request Formats

application/json, text/json

Sample:
{
  "PageIndex": 1,
  "PageSize": 2,
  "Search": {
    "Name": "sample string 1",
    "UnitType": 1,
    "ApplyOrgLevel": 0,
    "OrgBusinessTypes": 0,
    "IsStandard": 0
  }
}

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 'GetPageModel`1'.

Response

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

PageViewModelOfRoleWebModel

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": {
    "ViewModelList": [
      {
        "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"
        ]
      },
      {
        "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"
        ]
      }
    ],
    "PageSize": 1,
    "TotalRecords": 2,
    "PageIndex": 3,
    "Pages": 4
  },
  "Ret": 1,
  "ErrCode": 2,
  "Msg": "sample string 3",
  "SeqId": 4,
  "InfoMsg": "sample string 5"
}