From 4ef2496221ade2db1e1da5133f1b42cec817a0eb Mon Sep 17 00:00:00 2001 From: Chopper711 Date: Mon, 25 Sep 2023 12:13:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E8=8F=9C=E5=8D=95=E7=AE=A1ap?= =?UTF-8?q?i=20=E8=A1=A5=E5=85=85=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/api/index.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/manager/src/api/index.js b/manager/src/api/index.js index 2c90493a..247d9fe6 100644 --- a/manager/src/api/index.js +++ b/manager/src/api/index.js @@ -261,6 +261,38 @@ export const searchPermission = (params) => { /****************************** 权限结束 */ +/****************************** 店铺权限 */ +// 获取全部权限数据 +export const getStoreAllPermissionList = (params) => { + return getRequest("/permission/storeMenu/tree", params); +}; + +// 获取全部权限数据 +export const getStoreCurrentPermissionList = (params) => { + return getRequest("/permission/storeMenu/memberMenu", params); +}; + +// 添加权限 +export const addStorePermission = (params) => { + return postRequest("/permission/storeMenu", params); +}; + +// 编辑权限 +export const editStorePermission = (params) => { + return putRequest(`/permission/storeMenu/${params.id}`, params); +}; +// 删除权限 +export const deleteStorePermission = (ids, params) => { + return deleteRequest(`/permission/storeMenu/${ids}`, params); +}; +// 搜索权限 +export const searchStorePermission = (params) => { + return getRequest("/permission/storeMenu", params); +}; + +/****************************** 权限结束 */ + + // 分页获取日志数据 export const getLogListData = (params) => { return getRequest("/setting/log/getAllByPage", params);