多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ## 员工权限列表 ~~~[api] post:/user/competence *string:id=默认值#用户ID <<< success { "code": 0, "info": "成功", "data": [{ "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, "checked": false }, { "id": 5, "state": 0, "title": "员工管理", "sort": 0, "type": 1, "about": null, "checked": false }, { "id": 6, "state": 0, "title": "职务管理", "sort": 0, "type": 1, "about": null, "checked": false }, { "id": 7, "state": 0, "title": "商品管理", "sort": 0, "type": 1, "about": null, "checked": false }, { "id": 8, "state": 0, "title": "权限管理", "sort": 0, "type": 1, "about": null, "checked": false }] }, { "id": 2, "state": 0, "title": "会员管理", "sort": 0, "type": 0, "about": null, "child": [{ "id": 9, "state": 0, "title": "标签管理", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 10, "state": 0, "title": "生日提醒", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 11, "state": 0, "title": "积分规则", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 12, "state": 0, "title": "售后待办", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 13, "state": 0, "title": "会员等级", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 14, "state": 0, "title": "会员待办", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 15, "state": 0, "title": "群发消息", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 16, "state": 0, "title": "编辑会员", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 17, "state": 0, "title": "关键词回复", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 18, "state": 0, "title": "自定义菜单", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 19, "state": 0, "title": "客服消息设置", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 20, "state": 0, "title": "会员卡设置", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 21, "state": 0, "title": "电子券管理", "sort": 0, "type": 2, "about": null, "checked": false }] }, { "id": 3, "state": 0, "title": "销售下单", "sort": 0, "type": 0, "about": null, "child": [{ "id": 22, "state": 0, "title": "销售下单", "sort": 0, "type": 3, "about": null, "checked": false }, { "id": 23, "state": 0, "title": "订单记录", "sort": 0, "type": 3, "about": null, "checked": false }] }] }, { "title": "门店权限", "child": [{ "id": 1, "title": "淘宝店", "child": [{ "id": 24, "state": 1, "title": "撤销订单", "sort": 0, "type": 0, "about": null, "checked": true }, { "id": 25, "state": 1, "title": "会员发展统计", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 26, "state": 1, "title": "销售统计", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 27, "state": 1, "title": "会员统计", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 28, "state": 1, "title": "客服经理", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 29, "state": 1, "title": "聊天记录", "sort": 0, "type": 0, "about": null, "checked": false }] }, { "id": 2, "title": "京东店", "child": [{ "id": 24, "state": 1, "title": "撤销订单", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 25, "state": 1, "title": "会员发展统计", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 26, "state": 1, "title": "销售统计", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 27, "state": 1, "title": "会员统计", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 28, "state": 1, "title": "客服经理", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 29, "state": 1, "title": "聊天记录", "sort": 0, "type": 0, "about": null, "checked": false }] }, { "id": 3, "title": "东大街店", "child": [{ "id": 24, "state": 1, "title": "撤销订单", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 25, "state": 1, "title": "会员发展统计", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 26, "state": 1, "title": "销售统计", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 27, "state": 1, "title": "会员统计", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 28, "state": 1, "title": "客服经理", "sort": 0, "type": 0, "about": null, "checked": false }, { "id": 29, "state": 1, "title": "聊天记录", "sort": 0, "type": 0, "about": null, "checked": false }] }] }] } <<< error ~~~ ## 员工权限设置提交 ~~~[api] post:/user/competenceedit *string:id=默认值#用户id *com_json# 提交json 格式:[{"competence_id": 4,"shop_id": 2 }, {"competence_id": 1,"shop_id": 0 }] shop_id=0是全局 <<< success { "code": 0, "info": "成功", "data": 2 } <<< error ~~~