27 lines
803 B
TypeScript
27 lines
803 B
TypeScript
|
|
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);
|
||
|
|
};
|
||
|
|
|
||
|
|
//添加菜单列表
|
||
|
|
export const addFunction = (params: Function.ReqFunctionParams) => {
|
||
|
|
return http.post(`${rePrefix}/function/add`,params);
|
||
|
|
};
|
||
|
|
|
||
|
|
//删除菜单列表
|
||
|
|
export const deleteFunction = (params: { id: string[] }) => {
|
||
|
|
return http.post(`${rePrefix}/function/delete`, { data: params });
|
||
|
|
};
|
||
|
|
|
||
|
|
//编辑菜单列表
|
||
|
|
export const updateFunction = (params: Function.ReqFunctionParams) => {
|
||
|
|
return http.post(`${rePrefix}/function/update`, params);
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
|