zhxy-jsd/src/api/base/pbApi.ts

58 lines
1.2 KiB
TypeScript
Raw Normal View History

2025-09-15 15:36:11 +08:00
import { get, post } from "@/utils/request";
/**
*
*/
export const getPbPageApi = async (params: any) => {
return await get("/api/pb/findPage", params);
};
/**
* ID获取选课排班详情
*/
export const getPbByIdApi = async (id: string) => {
return await get(`/api/pb/${id}`);
};
/**
*
*/
export const createPbApi = async (params: any) => {
return await post("/api/pb", params);
};
/**
*
*/
export const updatePbApi = async (params: any) => {
return await post("/api/pb/update", params);
};
/**
*
*/
export const deletePbApi = async (id: string) => {
return await post(`/api/pb/delete/${id}`);
};
/**
* ID获取排班列表
*/
export const getPbListByXkIdApi = async (params: any) => {
return await get("/api/pb/findByXkId", params);
};
/**
*
*/
export const getXcCourseListApi = async (params: any) => {
return await get("/api/pb/getXcCourseList", params);
};
/**
*
*/
export const getKyXcCourseListApi = async (params: any) => {
return await get("/api/pb/getKyXcCourseList", params);
};