wang hou sheng 10 months ago
parent 64fd41ce32
commit 66451b3182
  1. 32
      src/api/api.config.js
  2. 42
      src/api/store.js

@ -1,7 +1,7 @@
export default { export default {
// 用户认证 // 用户认证
passport: { passport: {
login: '/passport/login', login: '/passport/login'
// logout: '/passport/logout' // logout: '/passport/logout'
}, },
@ -9,8 +9,8 @@ export default {
admin: { admin: {
user: { user: {
detail: '/admin.user/detail', detail: '/admin.user/detail',
renew: 'admin.user/renew', renew: 'admin.user/renew'
}, }
}, },
// 商家模块 // 商家模块
@ -41,7 +41,7 @@ export default {
dataList: 'store/platformList', dataList: 'store/platformList',
getStorePlatform: 'store/getStorePlatform', getStorePlatform: 'store/getStorePlatform',
setStorePlatform: 'store/auth', setStorePlatform: 'store/auth',
getGoodsList: '/goods/index', getGoodsList: '/goods/index'
}, },
// 商家后台api权限 // 商家后台api权限
@ -49,7 +49,7 @@ export default {
list: 'store.api/index', list: 'store.api/index',
add: 'store.api/add', add: 'store.api/add',
edit: 'store.api/edit', edit: 'store.api/edit',
delete: 'store.api/delete', delete: 'store.api/delete'
}, },
// 商家后台菜单 // 商家后台菜单
@ -66,34 +66,34 @@ export default {
list: 'store.menu.action/index', list: 'store.menu.action/index',
add: 'store.menu.action/add', add: 'store.menu.action/add',
edit: 'store.menu.action/edit', edit: 'store.menu.action/edit',
delete: 'store.menu.action/delete', delete: 'store.menu.action/delete'
}, }
}, }
}, },
// 系统管理 // 系统管理
setting: { setting: {
cache: { cache: {
clear: 'setting.cache/clear', clear: 'setting.cache/clear'
}, },
science: 'setting.science/info', science: 'setting.science/info',
queue: { queue: {
test: 'setting.queue/test', test: 'setting.queue/test'
}, },
timer: { timer: {
test: 'setting.timer/test', test: 'setting.timer/test'
}, }
}, },
// 云服务 // 云服务
cloud: { cloud: {
authorize: { authorize: {
info: 'cloud.authorize/info', info: 'cloud.authorize/info'
}, },
upgrade: { upgrade: {
info: 'cloud.upgrade/info', info: 'cloud.upgrade/info',
update: 'cloud.upgrade/update', update: 'cloud.upgrade/update',
download: 'cloud.upgrade/download', download: 'cloud.upgrade/download'
}, }
}, }
} }

@ -8,7 +8,7 @@ export function getVersion(params) {
return axios({ return axios({
url: api.store.getVersion, url: api.store.getVersion,
method: 'get', method: 'get',
params, params
}) })
} }
@ -20,7 +20,7 @@ export function delTemplatelist(params) {
return axios({ return axios({
url: api.store.delTemplatelist, url: api.store.delTemplatelist,
method: 'get', method: 'get',
params, params
}) })
} }
/** /**
@ -31,7 +31,7 @@ export function commit(params) {
return axios({ return axios({
url: api.store.commit, url: api.store.commit,
method: 'get', method: 'get',
params, params
}) })
} }
/** /**
@ -42,7 +42,7 @@ export function addTotemplate(params) {
return axios({ return axios({
url: api.store.addTotemplate, url: api.store.addTotemplate,
method: 'get', method: 'get',
params, params
}) })
} }
/** /**
@ -53,7 +53,7 @@ export function auditBeforeCheck(params) {
return axios({ return axios({
url: api.store.auditBeforeCheck, url: api.store.auditBeforeCheck,
method: 'get', method: 'get',
params, params
}) })
} }
/** /**
@ -64,7 +64,7 @@ export function audit(params) {
return axios({ return axios({
url: api.store.audit, url: api.store.audit,
method: 'get', method: 'get',
params, params
}) })
} }
/** /**
@ -75,7 +75,7 @@ export function qrcode(params) {
return axios({ return axios({
url: api.store.qrcode, url: api.store.qrcode,
method: 'get', method: 'get',
params, params
}) })
} }
/** /**
@ -86,7 +86,7 @@ export function list(params) {
return axios({ return axios({
url: api.store.list, url: api.store.list,
method: 'get', method: 'get',
params, params
}) })
} }
/** /**
@ -97,7 +97,7 @@ export function authList(params) {
return axios({ return axios({
url: api.store.authList, url: api.store.authList,
method: 'get', method: 'get',
params, params
}) })
} }
@ -109,7 +109,7 @@ export function templatedraftlist(params) {
return axios({ return axios({
url: api.store.templatedraftlist, url: api.store.templatedraftlist,
method: 'get', method: 'get',
params, params
}) })
} }
/** /**
@ -120,7 +120,7 @@ export function templatelist(params) {
return axios({ return axios({
url: api.store.templatelist, url: api.store.templatelist,
method: 'get', method: 'get',
params, params
}) })
} }
/** /**
@ -131,7 +131,7 @@ export function superLogin({ storeId }) {
return axios({ return axios({
url: api.store.superLogin, url: api.store.superLogin,
method: 'get', method: 'get',
params: { storeId }, params: { storeId }
}) })
} }
@ -143,7 +143,7 @@ export function recycle(params) {
return axios({ return axios({
url: api.store.recycle, url: api.store.recycle,
method: 'get', method: 'get',
params, params
}) })
} }
@ -155,7 +155,7 @@ export function add(data) {
return axios({ return axios({
url: api.store.add, url: api.store.add,
method: 'post', method: 'post',
data: data, data: data
}) })
} }
@ -167,7 +167,7 @@ export function recovery(data) {
return axios({ return axios({
url: api.store.recovery, url: api.store.recovery,
method: 'post', method: 'post',
data: data, data: data
}) })
} }
@ -179,7 +179,7 @@ export function del(data) {
return axios({ return axios({
url: api.store.delete, url: api.store.delete,
method: 'post', method: 'post',
data: data, data: data
}) })
} }
@ -191,7 +191,7 @@ export function move(data) {
return axios({ return axios({
url: api.store.move, url: api.store.move,
method: 'post', method: 'post',
data: data, data: data
}) })
} }
@ -203,7 +203,7 @@ export function getDataList(data) {
return axios({ return axios({
url: api.store.module.dataList, url: api.store.module.dataList,
method: 'post', method: 'post',
data: data, data: data
}) })
} }
/** /**
@ -214,20 +214,20 @@ export function getStorePlatform(params) {
return axios({ return axios({
url: api.store.module.getStorePlatform, url: api.store.module.getStorePlatform,
method: 'get', method: 'get',
params, params
}) })
} }
export function setStorePlatform (data) { export function setStorePlatform (data) {
return axios({ return axios({
url: api.store.module.setStorePlatform, url: api.store.module.setStorePlatform,
method: 'post', method: 'post',
data: data, data: data
}) })
} }
export function getGoodsList (params) { export function getGoodsList (params) {
return axios({ return axios({
url: api.store.module.getGoodsList, url: api.store.module.getGoodsList,
method: 'get', method: 'get',
params, params
}) })
} }

Loading…
Cancel
Save