| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- import https from '@/plugins/luch-request_0.0.7/request'
- export const setManager = data => {
- return https.get('/shop-admin/set-manager', data)
- }
- /** *
- * 员工列表
- */
- export const getStaffList = data => {
- return https.get('/shop-admin/list', data)
- }
- /** *
- * 查看员工 b
- */
- export const getStaffDet = data => {
- return https.get('/shop-admin/detail', data)
- }
- /** *
- * 添加员工 b
- */
- export const addStaff = data => {
- return https.post('/shop-admin/prepare-bind', data)
- }
- /** *
- * 修改员工 b
- */
- export const updateStaff = data => {
- return https.post('/shop-admin/update', data)
- }
- /** *
- * 删除员工 b
- */
- export const delStaff = data => {
- return https.get('/shop-admin/delete', data)
- }
- /** *
- * 员工角色--列表 b
- */
- export const getRoleList = data => {
- return https.get('/admin-role/list', data)
- }
- /** *
- * 员工角色--添加 b
- */
- export const addRole = data => {
- return https.post('/admin-role/add', data)
- }
- /** *
- * 员工角色--修改 b
- */
- export const updateRole = data => {
- return https.post('/admin-role/update', data)
- }
- //员工角色
- export const delRole = data => {
- return https.get('/admin-role/delete', data)
- }
- //操作记录
- export const getLogList = data => {
- return https.get('/admin-log/list', data)
- }
- //获取员工的验证码
- export const getStaffAuthCode = data => {
- return https.get('/shop-admin/get-staff-auth-code', data)
- }
- //添加员工
- export const createStaff = data => {
- return https.post('/shop-admin/add-staff', data)
- }
|