From 66451b31827a2de7aa7de36f09c33af421836272 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Mon, 22 Apr 2024 21:32:16 +0800 Subject: [PATCH] 1 --- src/api/api.config.js | 32 ++++++++--------- src/api/store.js | 84 +++++++++++++++++++++---------------------- 2 files changed, 58 insertions(+), 58 deletions(-) diff --git a/src/api/api.config.js b/src/api/api.config.js index c5308cb..95113c8 100644 --- a/src/api/api.config.js +++ b/src/api/api.config.js @@ -1,7 +1,7 @@ export default { // 用户认证 passport: { - login: '/passport/login', + login: '/passport/login' // logout: '/passport/logout' }, @@ -9,8 +9,8 @@ export default { admin: { user: { detail: '/admin.user/detail', - renew: 'admin.user/renew', - }, + renew: 'admin.user/renew' + } }, // 商家模块 @@ -41,7 +41,7 @@ export default { dataList: 'store/platformList', getStorePlatform: 'store/getStorePlatform', setStorePlatform: 'store/auth', - getGoodsList: '/goods/index', + getGoodsList: '/goods/index' }, // 商家后台api权限 @@ -49,7 +49,7 @@ export default { list: 'store.api/index', add: 'store.api/add', edit: 'store.api/edit', - delete: 'store.api/delete', + delete: 'store.api/delete' }, // 商家后台菜单 @@ -66,34 +66,34 @@ export default { list: 'store.menu.action/index', add: 'store.menu.action/add', edit: 'store.menu.action/edit', - delete: 'store.menu.action/delete', - }, - }, + delete: 'store.menu.action/delete' + } + } }, // 系统管理 setting: { cache: { - clear: 'setting.cache/clear', + clear: 'setting.cache/clear' }, science: 'setting.science/info', queue: { - test: 'setting.queue/test', + test: 'setting.queue/test' }, timer: { - test: 'setting.timer/test', - }, + test: 'setting.timer/test' + } }, // 云服务 cloud: { authorize: { - info: 'cloud.authorize/info', + info: 'cloud.authorize/info' }, upgrade: { info: 'cloud.upgrade/info', update: 'cloud.upgrade/update', - download: 'cloud.upgrade/download', - }, - }, + download: 'cloud.upgrade/download' + } + } } diff --git a/src/api/store.js b/src/api/store.js index 9795b86..d7fa31f 100644 --- a/src/api/store.js +++ b/src/api/store.js @@ -4,11 +4,11 @@ import { axios } from '@/utils/request' * 获取列表 * @param {*} params */ -export function getVersion(params) { +export function getVersion (params) { return axios({ url: api.store.getVersion, method: 'get', - params, + params }) } @@ -16,88 +16,88 @@ export function getVersion(params) { * 获取列表 * @param {*} params */ -export function delTemplatelist(params) { +export function delTemplatelist (params) { return axios({ url: api.store.delTemplatelist, method: 'get', - params, + params }) } /** * 获取列表 * @param {*} params */ -export function commit(params) { +export function commit (params) { return axios({ url: api.store.commit, method: 'get', - params, + params }) } /** * 获取列表 * @param {*} params */ -export function addTotemplate(params) { +export function addTotemplate (params) { return axios({ url: api.store.addTotemplate, method: 'get', - params, + params }) } /** * 获取列表 * @param {*} params */ -export function auditBeforeCheck(params) { +export function auditBeforeCheck (params) { return axios({ url: api.store.auditBeforeCheck, method: 'get', - params, + params }) } /** * 获取列表 * @param {*} params */ -export function audit(params) { +export function audit (params) { return axios({ url: api.store.audit, method: 'get', - params, + params }) } /** * 获取列表 * @param {*} params */ -export function qrcode(params) { +export function qrcode (params) { return axios({ url: api.store.qrcode, method: 'get', - params, + params }) } /** * 获取列表 * @param {*} params */ -export function list(params) { +export function list (params) { return axios({ url: api.store.list, method: 'get', - params, + params }) } /** * 获取列表 * @param {*} params */ -export function authList(params) { +export function authList (params) { return axios({ url: api.store.authList, method: 'get', - params, + params }) } @@ -105,33 +105,33 @@ export function authList(params) { * 获取列表 * @param {*} params */ -export function templatedraftlist(params) { +export function templatedraftlist (params) { return axios({ url: api.store.templatedraftlist, method: 'get', - params, + params }) } /** * 获取列表 * @param {*} params */ -export function templatelist(params) { +export function templatelist (params) { return axios({ url: api.store.templatelist, method: 'get', - params, + params }) } /** * 获取商城登录token * @param {*} params */ -export function superLogin({ storeId }) { +export function superLogin ({ storeId }) { return axios({ url: api.store.superLogin, method: 'get', - params: { storeId }, + params: { storeId } }) } @@ -139,11 +139,11 @@ export function superLogin({ storeId }) { * 回收站列表 * @param {*} params */ -export function recycle(params) { +export function recycle (params) { return axios({ url: api.store.recycle, method: 'get', - params, + params }) } @@ -151,11 +151,11 @@ export function recycle(params) { * 新增记录 * @param {*} data */ -export function add(data) { +export function add (data) { return axios({ url: api.store.add, method: 'post', - data: data, + data: data }) } @@ -163,11 +163,11 @@ export function add(data) { * 移入回收站 * @param {*} data */ -export function recovery(data) { +export function recovery (data) { return axios({ url: api.store.recovery, method: 'post', - data: data, + data: data }) } @@ -175,11 +175,11 @@ export function recovery(data) { * 删除记录 * @param {*} data */ -export function del(data) { +export function del (data) { return axios({ url: api.store.delete, method: 'post', - data: data, + data: data }) } @@ -187,11 +187,11 @@ export function del(data) { * 移出回收站 * @param {*} data */ -export function move(data) { +export function move (data) { return axios({ url: api.store.move, method: 'post', - data: data, + data: data }) } @@ -199,35 +199,35 @@ export function move(data) { * 获取数据授权 * @param {*} data */ -export function getDataList(data) { +export function getDataList (data) { return axios({ url: api.store.module.dataList, method: 'post', - data: data, + data: data }) } /** * 获取数据授权平台列表 * @param {*} data */ -export function getStorePlatform(params) { +export function getStorePlatform (params) { return axios({ url: api.store.module.getStorePlatform, method: 'get', - params, + params }) } -export function setStorePlatform(data) { +export function setStorePlatform (data) { return axios({ url: api.store.module.setStorePlatform, method: 'post', - data: data, + data: data }) } -export function getGoodsList(params) { +export function getGoodsList (params) { return axios({ url: api.store.module.getGoodsList, method: 'get', - params, + params }) }