简要描述:

  • 登陆用户(角色)子应用权限

请求URL:

/apaas/api/v2/custom_app_grants/user_permissions

请求方式:

  • GET

请求参数:

传参名 是否必须 字段类型 描述
custom_form_id true Int 子应用ID

正确时返回:

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "custom_app_grant_id": 13,
        "organization_id": 1,
        "custom_form_id": 1,
        "action_permission": [
            {
                "label": "新增市场调研",
                "action": "create",
                "checked": true
            },
            {
                "label": "编辑市场调研",
                "action": "edit",
                "checked": true
            },
            {
                "label": "查看市场调研",
                "action": "show",
                "checked": true
            },
            {
                "label": "删除市场调研",
                "action": "destroy",
                "checked": true
            },
            {
                "label": "导入市场调研",
                "action": "import",
                "checked": true
            },
            {
                "label": "导出市场调研",
                "action": "export",
                "checked": true
            },
            {
                "label": "转移市场调研",
                "action": "transfer",
                "checked": true
            }
        ],
        "data_permission": [
            {
                "label": "个人",
                "value": 0,
                "checked": false
            },
            {
                "label": "所属部门",
                "value": 1,
                "checked": false
            },
            {
                "label": "所属部门及下属部门",
                "value": 2,
                "checked": false
            },
            {
                "label": "全公司",
                "value": 3,
                "checked": true
            }
        ],
        "field_permission": {
            "scope": [
                {
                    "label": "全部生效",
                    "value": 0,
                    "checked": true
                },
                {
                    "label": "仅对自己负责的生效",
                    "value": 1,
                    "checked": false
                }
            ],
            "setting": [
                {
                    "invisible": false,
                    "uneditable": false,
                    "hidden_type": null,
                    "field_name": "text_1691372215442_727d60",
                    "field": {
                        "id": 10,
                        "name": "text_1691372215442_727d60",
                        "label": "滴滴答答",
                        "field_type": "text_field"
                    }
                },
                {
                    "invisible": false,
                    "uneditable": false,
                    "hidden_type": null,
                    "field_name": "select_1691125929052_d05a00",
                    "field": {
                        "id": 11,
                        "name": "select_1691125929052_d05a00",
                        "label": "分类",
                        "field_type": "select_field"
                    }
                },
                {
                    "invisible": false,
                    "uneditable": false,
                    "hidden_type": null,
                    "field_name": "create_at",
                    "field": {
                        "id": 7,
                        "name": "create_at",
                        "label": "创建时间",
                        "field_type": "datetime_field"
                    }
                }
            ]
        }
    }
}

返回数据字段说明

字段名 参数类型 描述
id 整型 数据库ID
action_permission Array 操作权限信息
data_permission Array 数据权限信息
field_permission Hash 字段权限信息
文档更新时间: 2024-06-18 14:22   作者:蒋海军