叁玖-saas


前台 -- 职位与权限列表

简要描述
  • 前台 -- 职位与权限列表
请求URL
  • /api/permission/roleInfo
请求方式
  • POST
参数
参数名 必选 类型 说明
company_id string 公司id
user_id string 当前登录id
返回示例
  {
    "success": {
        "code": "200",
        "message": "OK",
        "page_now": 1,
        "page_size": 1,
        "page_num": 10,
        "total_num": 2,
        "data": [
            {
                "id": 1,
                "company_id": 1,
                "role_name": "财务",
                "scope": 2,
                "group_id": "1,2,3,4",
                "dispatch_scope": 1,
                "dispatch_client_id": "1",
                "dispatch_start_province": "1",
                "dispatch_end_province": "1",
                "role_range": "[{\"order\": 1, \"order-list\": 1}]",
                "memo": "",
                "if_deleted": 0,
                "created_id": 0,
                "updated_id": 0,
                "created_at": "2022-06-28 15:02:00",
                "updated_at": "2022-06-28 16:19:37",
                "created_at_ymd": "2022-06-28",
                "updated_at_ymd": ""
            },
            {
                "id": 2,
                "company_id": 1,
                "role_name": "客服",
                "scope": 0,
                "group_id": "",
                "dispatch_scope": 0,
                "dispatch_client_id": "",
                "dispatch_start_province": "",
                "dispatch_end_province": "",
                "role_range": "[]",
                "memo": "",
                "if_deleted": 0,
                "created_id": 0,
                "updated_id": 0,
                "created_at": "2022-06-28 15:17:00",
                "updated_at": "2022-06-28 17:25:04",
                "created_at_ymd": "2022-06-28",
                "updated_at_ymd": ""
            }
        ]
    }
}
返回参数说明
参数名 类型 说明
role_name string 角色名称
memo int 备注
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML