💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ## 权限列表 ~~~[api] post:/competence/list <<< success { "code": 0, "info": "成功", "data": [{ "id": 0, "title": "公共权限", "child": [{ "id": 1, "title": "门店管理", "about": null, "state": 0, "type": 0, "child": [{ "id": 4, "title": "区域管理", "about": null, "state": 0, "type": 1 }, { "id": 5, "title": "门店管理", "about": null, "state": 0, "type": 1 }] }] }, { "id": 1, "title": "西安2", "child": [{ "id": 2, "title": "员工管理", "about": null, "state": 1, "type": 0, "child": [{ "id": 6, "title": "职务管理", "about": null, "state": 1, "type": 2 }, { "id": 7, "title": "用户组管理", "about": null, "state": 1, "type": 2 }, { "id": 8, "title": "员工管理", "about": null, "state": 1, "type": 2 }, { "id": 9, "title": "权限管理", "about": null, "state": 1, "type": 2 }] }] }, { "id": 2, "title": "渭南", "child": [{ "id": 2, "title": "员工管理", "about": null, "state": 1, "type": 0, "child": [{ "id": 6, "title": "职务管理", "about": null, "state": 1, "type": 2 }, { "id": 7, "title": "用户组管理", "about": null, "state": 1, "type": 2 }, { "id": 8, "title": "员工管理", "about": null, "state": 1, "type": 2 }, { "id": 9, "title": "权限管理", "about": null, "state": 1, "type": 2 }] }] }, { "id": 3, "title": "宝鸡", "child": [{ "id": 2, "title": "员工管理", "about": null, "state": 1, "type": 0, "child": [{ "id": 6, "title": "职务管理", "about": null, "state": 1, "type": 2 }, { "id": 7, "title": "用户组管理", "about": null, "state": 1, "type": 2 }, { "id": 8, "title": "员工管理", "about": null, "state": 1, "type": 2 }, { "id": 9, "title": "权限管理", "about": null, "state": 1, "type": 2 }] }] }, { "id": 1, "title": "宝鸡手机通讯3", "child": [{ "id": 3, "title": "商家工资", "about": null, "state": 2, "type": 0, "child": [{ "id": 10, "title": "区域管理", "about": null, "state": 2, "type": 3 }, { "id": 11, "title": "商家管理", "about": null, "state": 2, "type": 3 }, { "id": 12, "title": "财务统计", "about": null, "state": 2, "type": 3 }] }] }, { "id": 2, "title": "444", "child": [{ "id": 3, "title": "商家工资", "about": null, "state": 2, "type": 0, "child": [{ "id": 10, "title": "区域管理", "about": null, "state": 2, "type": 3 }, { "id": 11, "title": "商家管理", "about": null, "state": 2, "type": 3 }, { "id": 12, "title": "财务统计", "about": null, "state": 2, "type": 3 }] }] }, { "id": 3, "title": "333", "child": [{ "id": 3, "title": "商家工资", "about": null, "state": 2, "type": 0, "child": [{ "id": 10, "title": "区域管理", "about": null, "state": 2, "type": 3 }, { "id": 11, "title": "商家管理", "about": null, "state": 2, "type": 3 }, { "id": 12, "title": "财务统计", "about": null, "state": 2, "type": 3 }] }] }, { "id": 5, "title": "宝鸡手机通讯31", "child": [{ "id": 3, "title": "商家工资", "about": null, "state": 2, "type": 0, "child": [{ "id": 10, "title": "区域管理", "about": null, "state": 2, "type": 3 }, { "id": 11, "title": "商家管理", "about": null, "state": 2, "type": 3 }, { "id": 12, "title": "财务统计", "about": null, "state": 2, "type": 3 }] }] }] } <<< error ~~~ ## 权限用户列表 ~~~[api] post:/competence/user *string:id#区域or门店ID *com_id#权限ID <<< success { "code": 0, "info": "成功", "data": [{ "id": 1, "title": "西安2", "child": [{ "id": 2, "title": "444", "child": [] }] }, { "id": 2, "title": "渭南", "child": [{ "id": 1, "title": "宝鸡手机通讯3", "child": [{ "id": 999, "name": "王伟", "checked": false }, { "id": 1000, "name": "老板", "checked": false }, { "id": 1001, "name": "王伟", "checked": false }, { "id": 1002, "name": "William", "checked": true }] }, { "id": 3, "title": "333", "child": [] }, { "id": 5, "title": "宝鸡手机通讯31", "child": [] }] }, { "id": 3, "title": "宝鸡", "child": [] }] } <<< error ~~~ ## 提交权限用户 ~~~[api] post:/competence/edit *string:id#区域or门店ID *com_id#权限ID *array:user_id#员工id数组 <<< success { "code": 0, "info": "成功", "data": 2 } <<< error ~~~