Files
pqs-9100_client/frontend/src/api/function/index.ts

28 lines
747 B
TypeScript
Raw Normal View History

2024-11-01 15:27:36 +08:00
import http from "@/api";
import { ADMIN as rePrefix } from "@/api/config/serviceName";
import type { Function } from "@/api/function/interface";
2024-11-14 11:34:25 +08:00
2024-11-01 15:27:36 +08:00
//获取菜单列表
export const getFunctionList = (params: Function.ReqFunctionParams) => {
2024-11-14 11:34:25 +08:00
return http.post(`/function/list`, params);
2024-11-01 15:27:36 +08:00
};
//添加菜单列表
2024-11-14 11:34:25 +08:00
export const addFunction = (params: Function.ResFunction) => {
return http.post(`/function/add`,params);
2024-11-01 15:27:36 +08:00
};
//删除菜单列表
export const deleteFunction = (params: { id: string[] }) => {
2024-11-14 11:34:25 +08:00
return http.post(`/function/delete`, { data: params });
2024-11-01 15:27:36 +08:00
};
//编辑菜单列表
2024-11-14 11:34:25 +08:00
export const updateFunction = (params: Function.ResFunction) => {
return http.put(`/function/update`, params);
2024-11-01 15:27:36 +08:00
};