[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
~~~
- 全局说明
- 微信相关接口
- 首页
- 系统消息
- 消息中心
- 基础设置
- 门店管理
- 员工管理
- 职务管理
- 会员
- 标签管理
- 会员管理
- 会员等级
- 会员等级权益
- 会员权益核销
- 聊天记录
- 会员等级电子券
- 商品
- 商品分类
- 商品品牌
- 商品管理
- 订单
- 设置
- 生日提醒
- 积分规则
- 客服消息设置
- 群发消息
- 会员/售后待办
- 关键字回复
- 自定义菜单
- 会员卡号规则设置
- 会员卡ID设置
- 客服经理
- 小算盘设置
- 个人中心
- 员工我的待办列表
- 跟进
- 会员动态
- 会员积分/余额
- 订单记录列表
- 个人中心详情页面
- 会员待办列表
- 会员电子券
- 客户平台
- 会员聊天
- 我的顾问
- 客户订单
- 客户中心
- 客户电子券
- 我的动态
- 会员积分/余额
- 统计
- 会员统计
- 会员发展统计
- 销售统计
- 待办统计
- 电子券统计
- 会员等级变更统计
- 积分统计
- 余额统计
- 电子券核销统计
- 权限管理
- 员工权限
- 电子券
- 订单满额
- 订单电子券
- 商品组电子券
- 群发电子券
- 一对一投放
- 商品组
- 商品组商品
- 会员分配
- PC版相关
- 导出相关
- 开通流程页面
- 合作商家
- 商家相关
- 引流券相关
- 合作商家
- 领取功能
- 打印设置
- 小算盘
- e学堂
- 获取Openid