店铺菜单管api 补充提交

master
Chopper711 2023-09-25 12:13:07 +08:00
parent b2b56178a2
commit 4ef2496221
1 changed files with 32 additions and 0 deletions

View File

@ -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) => { export const getLogListData = (params) => {
return getRequest("/setting/log/getAllByPage", params); return getRequest("/setting/log/getAllByPage", params);