企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] ## 权限列表 ~~~[api] post:/competence/list <<< success { "code": 0, "info": "成功", "data": [{ "id": 0, "title": "公共权限", "child": [{ "id": 1, "state": 0, "title": "基础信息", "sort": 0, "type": 0, "about": null, "child": [{ "id": 4, "state": 0, "title": "门店管理", "sort": 0, "type": 1, "about": null }, { "id": 5, "state": 0, "title": "员工管理", "sort": 0, "type": 1, "about": null }, { "id": 6, "state": 0, "title": "职务管理", "sort": 0, "type": 1, "about": null }, { "id": 7, "state": 0, "title": "商品管理", "sort": 0, "type": 1, "about": null }, { "id": 8, "state": 0, "title": "权限管理", "sort": 0, "type": 1, "about": null }] }, { "id": 2, "state": 0, "title": "会员管理", "sort": 0, "type": 0, "about": null, "child": [{ "id": 9, "state": 0, "title": "标签管理", "sort": 0, "type": 2, "about": null }, { "id": 10, "state": 0, "title": "生日提醒", "sort": 0, "type": 2, "about": null }, { "id": 11, "state": 0, "title": "积分规则", "sort": 0, "type": 2, "about": null }, { "id": 12, "state": 0, "title": "售后待办", "sort": 0, "type": 2, "about": null }, { "id": 13, "state": 0, "title": "会员等级", "sort": 0, "type": 2, "about": null }, { "id": 14, "state": 0, "title": "会员待办", "sort": 0, "type": 2, "about": null }, { "id": 15, "state": 0, "title": "群发消息", "sort": 0, "type": 2, "about": null }, { "id": 16, "state": 0, "title": "编辑会员", "sort": 0, "type": 2, "about": null }, { "id": 17, "state": 0, "title": "关键词回复", "sort": 0, "type": 2, "about": null }, { "id": 18, "state": 0, "title": "自定义菜单", "sort": 0, "type": 2, "about": null }, { "id": 19, "state": 0, "title": "客服消息设置", "sort": 0, "type": 2, "about": null }, { "id": 20, "state": 0, "title": "会员卡设置", "sort": 0, "type": 2, "about": null }, { "id": 21, "state": 0, "title": "电子券管理", "sort": 0, "type": 2, "about": null }] }, { "id": 3, "state": 0, "title": "销售下单", "sort": 0, "type": 0, "about": null, "child": [{ "id": 22, "state": 0, "title": "销售下单", "sort": 0, "type": 3, "about": null }, { "id": 23, "state": 0, "title": "订单记录", "sort": 0, "type": 3, "about": null }] }] }, { "id": 1, "title": "淘宝店", "child": [{ "id": 24, "state": 1, "title": "撤销订单", "sort": 0, "type": 0, "about": null }, { "id": 25, "state": 1, "title": "会员发展统计", "sort": 0, "type": 0, "about": null }, { "id": 26, "state": 1, "title": "销售统计", "sort": 0, "type": 0, "about": null }, { "id": 27, "state": 1, "title": "会员统计", "sort": 0, "type": 0, "about": null }, { "id": 28, "state": 1, "title": "客服经理", "sort": 0, "type": 0, "about": null }, { "id": 29, "state": 1, "title": "聊天记录", "sort": 0, "type": 0, "about": null }] }, { "id": 2, "title": "京东店", "child": [{ "id": 24, "state": 1, "title": "撤销订单", "sort": 0, "type": 0, "about": null }, { "id": 25, "state": 1, "title": "会员发展统计", "sort": 0, "type": 0, "about": null }, { "id": 26, "state": 1, "title": "销售统计", "sort": 0, "type": 0, "about": null }, { "id": 27, "state": 1, "title": "会员统计", "sort": 0, "type": 0, "about": null }, { "id": 28, "state": 1, "title": "客服经理", "sort": 0, "type": 0, "about": null }, { "id": 29, "state": 1, "title": "聊天记录", "sort": 0, "type": 0, "about": null }] }, { "id": 3, "title": "东大街店", "child": [{ "id": 24, "state": 1, "title": "撤销订单", "sort": 0, "type": 0, "about": null }, { "id": 25, "state": 1, "title": "会员发展统计", "sort": 0, "type": 0, "about": null }, { "id": 26, "state": 1, "title": "销售统计", "sort": 0, "type": 0, "about": null }, { "id": 27, "state": 1, "title": "会员统计", "sort": 0, "type": 0, "about": null }, { "id": 28, "state": 1, "title": "客服经理", "sort": 0, "type": 0, "about": null }, { "id": 29, "state": 1, "title": "聊天记录", "sort": 0, "type": 0, "about": null }] }] } <<< error ~~~ ## 权限用户 ~~~[api] post:/competence/user *string:id=默认值#门店id ,如果是全局权限就传0 *com_id#权限ID <<< success { "code": 0, "info": "成功", "data": [{ "id": 1, "title": "淘宝店", "child": [{ "id": 1003, "name": "飒飒", "shop_id": 1, "checked": false }, { "id": 1004, "name": "胡歌", "shop_id": 1, "checked": false }, { "id": 1009, "name": "陈鹏", "shop_id": 1, "checked": false }, { "id": 1011, "name": "测试用户", "shop_id": 1, "checked": false }] }, { "id": 2, "title": "京东店", "child": [{ "id": 1000, "name": "老板", "shop_id": 2, "checked": false }, { "id": 1001, "name": "李亮", "shop_id": 2, "checked": false }, { "id": 1002, "name": "王伟", "shop_id": 2, "checked": false }] }, { "id": 3, "title": "东大街店", "child": [{ "id": 1005, "name": "金哥", "shop_id": 3, "checked": false }, { "id": 1006, "name": "周倜2", "shop_id": 3, "checked": false }, { "id": 1007, "name": "周倜", "shop_id": 3, "checked": false }, { "id": 1008, "name": "梁海鹏", "shop_id": 3, "checked": false }] }] } <<< error ~~~ ## 设置权限用户 ~~~[api] post:/competence/edit *string:id#门店ID ,全局为0 *com_id#权限ID *array:user_id#员工id数组 <<< success { "code": 0, "info": "成功", "data": 2 } <<< error ~~~