接口说明
查找角色接口
数据权限说明
只能查询登录账号已有权限公司的角色数据
请求示例
https://v7.cmsv8.com/StandardApiAction_findUserRole.action?jsession=66d754dd7f41473dbd2&id=5&name=role1
请求参数
| 参数名 | 参数类型 | 是否必须 | 示例 | 描述 |
|---|---|---|---|---|
| jsession | sting | 是 | 66d754dd7f41473dbd2 | 会话号 |
| name | string | 否 | role1 | 角色名称 |
| id | number | 否 | 5 | 角色id |
| # 返回参数 |
| 参数名称 | 参数类型 | 参数含义 | ||
|---|---|---|---|---|
| result | number | 0表示成功,其他表示失败,[错误码说明](https://help.cmsv8.com/helpCenter/doc/index.html?isStudy=1&pageType=3&docId=1321&type=1 "错误码说明") | ||
| role | array | |||
| id | number | 角色id | ||
| name | string | 角色名称 | ||
| privilege | string | 角色权限 | ||
| company | object | 角色所属组织,解析参考公司查询 | ||
| id | number | |||
| name | string | |||
| level | number | |||
| code | string | |||
| abbreviation | string | |||
| legal | string | |||
| linkMan | string | |||
| linkPhone | string | |||
| linkEmail | string | |||
| industryType | string | |||
| industryTypeStr | string | |||
| parentId | number | |||
| businessLicenseNum | string | |||
| registeredCapital | string | |||
| address | string | |||
| introduction | string | |||
| remark | string | |||
| updateUserId | string | |||
| updateTime | number | |||
| parentName | string | |||
| isMine | string | |||
| isChild | string | |||
| companyId | number | |||
| customerID | string | |||
| accountID | string | |||
| accountName | string | |||
| actName | string | |||
| password | string | |||
| validity | string | |||
| moreId | string | |||
| markerId | string | |||
| platformId | string | |||
| encryptPwd | string | |||
| dispatchGroup | string | |||
| isAdd | string | |||
| area | string | |||
| nuclearAuthority | string | |||
| legalPhone | string | |||
| legalAddress | string | |||
| gbCode | string | |||
| regionId | string | |||
| regionCode | string | |||
| regionName | string | |||
| navTitle | string | |||
| navImage | string | |||
| website | string | |||
| vehiAddDel | number | |||
| dispatcher | string | |||
| inspectReply | number | |||
| inspectAccount | string | |||
| inspectAccountStr | string | |||
| function | string | |||
| maxVehicleNum | string | |||
| configuration | string | |||
| motorcadeName | string | |||
| parentFunction | string | |||
| strongPass | boolean | |||
| monitor | string | |||
| monitorSupervisor | string | |||
| supervisorPhone | string | |||
| operatorCompanyId | string | |||
| operatorName | string | |||
| companyType | number | |||
| updateUserAccount | string | |||
| quasiTransport | number | |||
| motorcade | boolean | |||
| remark | string | |||
| updateTime | number | |||
| userIds | string | |||
| share | number | |||
| view | boolean | |||
| chn | number | |||
返回示例
{
"result": 0,
"role": [
{
"id": 5,
"name": "role1",
"privilege": ",611,613,662,680,1,",
"company": {
"id": 1,
"name": "xxx",
"level": 15,
"code": null,
"abbreviation": null,
"legal": null,
"linkMan": null,
"linkPhone": null,
"linkEmail": null,
"industryType": null,
"industryTypeStr": null,
"parentId": 0,
"businessLicenseNum": null,
"registeredCapital": null,
"address": null,
"introduction": null,
"remark": null,
"updateUserId": null,
"updateTime": 1685589308000,
"parentName": null,
"isMine": null,
"isChild": null,
"companyId": 0,
"customerID": null,
"accountID": null,
"accountName": null,
"actName": null,
"password": null,
"validity": null,
"moreId": null,
"markerId": null,
"platformId": null,
"encryptPwd": null,
"dispatchGroup": null,
"isAdd": null,
"area": null,
"nuclearAuthority": null,
"legalPhone": null,
"legalAddress": null,
"gbCode": "34020000002160000001",
"regionId": null,
"regionCode": "440000",
"regionName": null,
"navTitle": null,
"navImage": null,
"website": null,
"vehiAddDel": 1,
"dispatcher": null,
"inspectReply": 0,
"inspectAccount": null,
"inspectAccountStr": null,
"function": null,
"maxVehicleNum": null,
"configuration": null,
"motorcadeName": null,
"parentFunction": null,
"strongPass": false,
"monitor": null,
"monitorSupervisor": null,
"supervisorPhone": null,
"operatorCompanyId": null,
"operatorName": null,
"companyType": 0,
"updateUserAccount": null,
"quasiTransport": 0,
"motorcade": false
},
"remark": null,
"updateTime": 1732788224000,
"userIds": null,
"share": 0,
"view": false,
"chn": 0
}
]
}