角色管理
This commit is contained in:
@@ -2,24 +2,25 @@ import http from "@/api";
|
||||
import { ADMIN as rePrefix } from "@/api/config/serviceName";
|
||||
import type { Function } from "@/api/function/interface";
|
||||
|
||||
|
||||
//获取菜单列表
|
||||
export const getFunctionList = (params: Function.ReqFunctionParams) => {
|
||||
return http.post(`${rePrefix}/function/list`, params);
|
||||
return http.post(`/function/list`, params);
|
||||
};
|
||||
|
||||
//添加菜单列表
|
||||
export const addFunction = (params: Function.ReqFunctionParams) => {
|
||||
return http.post(`${rePrefix}/function/add`,params);
|
||||
export const addFunction = (params: Function.ResFunction) => {
|
||||
return http.post(`/function/add`,params);
|
||||
};
|
||||
|
||||
//删除菜单列表
|
||||
export const deleteFunction = (params: { id: string[] }) => {
|
||||
return http.post(`${rePrefix}/function/delete`, { data: params });
|
||||
return http.post(`/function/delete`, { data: params });
|
||||
};
|
||||
|
||||
//编辑菜单列表
|
||||
export const updateFunction = (params: Function.ReqFunctionParams) => {
|
||||
return http.post(`${rePrefix}/function/update`, params);
|
||||
export const updateFunction = (params: Function.ResFunction) => {
|
||||
return http.put(`/function/update`, params);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user