CMSV6帮助文档
/
901 DOCS · 225 VIDEOSEN

查找角色

作者 杨权更新 2025-01-13 11:15:11文档 ID 1368约 3,331 字 · 阅读 8 分钟查看原文 ↗

接口说明

查找角色接口

数据权限说明

只能查询登录账号已有权限公司的角色数据

请求示例

https://v7.cmsv8.com/StandardApiAction_findUserRole.action?jsession=66d754dd7f41473dbd2&id=5&name=role1

请求参数

参数名 参数类型 是否必须 示例 描述
jsession sting 是 66d754dd7f41473dbd2 会话号
name string 否 role1 角色名称
id number 否 5 角色id
# 返回参数
参数名称参数类型参数含义
resultnumber0表示成功,其他表示失败,[错误码说明](https://help.cmsv8.com/helpCenter/doc/index.html?isStudy=1&pageType=3&docId=1321&type=1 "错误码说明")
rolearray
idnumber角色id
namestring角色名称
privilegestring角色权限
companyobject角色所属组织,解析参考公司查询
idnumber
namestring
levelnumber
codestring
abbreviationstring
legalstring
linkManstring
linkPhonestring
linkEmailstring
industryTypestring
industryTypeStrstring
parentIdnumber
businessLicenseNumstring
registeredCapitalstring
addressstring
introductionstring
remarkstring
updateUserIdstring
updateTimenumber
parentNamestring
isMinestring
isChildstring
companyIdnumber
customerIDstring
accountIDstring
accountNamestring
actNamestring
passwordstring
validitystring
moreIdstring
markerIdstring
platformIdstring
encryptPwdstring
dispatchGroupstring
isAddstring
areastring
nuclearAuthoritystring
legalPhonestring
legalAddressstring
gbCodestring
regionIdstring
regionCodestring
regionNamestring
navTitlestring
navImagestring
websitestring
vehiAddDelnumber
dispatcherstring
inspectReplynumber
inspectAccountstring
inspectAccountStrstring
functionstring
maxVehicleNumstring
configurationstring
motorcadeNamestring
parentFunctionstring
strongPassboolean
monitorstring
monitorSupervisorstring
supervisorPhonestring
operatorCompanyIdstring
operatorNamestring
companyTypenumber
updateUserAccountstring
quasiTransportnumber
motorcadeboolean
remarkstring
updateTimenumber
userIdsstring
sharenumber
viewboolean
chnnumber

返回示例

{
    "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
        }
    ]
}
数据来源 help.cmsv8.com
901 篇文档 · 225 个视频 · docs.alwaycare.com