项目权限查询

  • 接口:/common/projectUserStaffs/v2/findStaffByCodes
  • Method:GET
  • 接口说明:根据项目编码列表查询项目权限信息

请求参数

字段名称 字段类型 字段描述 是否必填 长度
bizId String 业务唯一识别码 true 255
timestamp long 时间戳 true
codes List 项目编码 true 64

请求示例

/common/projectUserStaffs/v2/findStaffByCodes?codes=SA015,9

返回参数

默认返参

字段名称 字段类型 字段描述
resCode Integer 状态码
resMsg String 描述
bizId String 业务唯一识别码
data Array 权限数据列表
data.code String 项目代码
data.staff_type String 权限类型,U:代表用户,D:代表部门(该部门下的用户有权限)
data.sequence_num String 序号
data.child_include_flag String 是否包含子部门
data.department_code String 分公司代码
data.user_name String 用户名
data.employee_number String 员工号

返回示例

{
    "resCode": 200000,
    "resMsg": "success",
    "bizId": "xxx",
    "data": [

        {
            "code": "SA015",
            "staff_type": "D",
            "sequence_num": 1,
            "child_include_flag": "N",
            "department_code": "D427"
        },
        {
            "code": "SA015",
            "staff_type": "D",
            "sequence_num": 2,
            "child_include_flag": "Y",
            "department_code": "NEWDR"
        },
        {
            "code": "SA015",
            "staff_type": "U",
            "sequence_num": 0,
            "user_name": "yw@qq.com",
            "employee_number": "CAN000193"
        },{
            "code": "9",
            "staff_type": "D",
            "child_include_flag": "N",
            "department_code": "A92022052604"
        },
        {
            "code": "9",
            "staff_type": "U",
            "user_name": "zhaixuwen@tom.com",
            "employee_number": "tomtom"
        },
    ]
}

results matching ""

    No results matching ""