zhxy-jsd/src/api/base/pbApi.ts
2025-09-15 15:36:11 +08:00

58 lines
1.2 KiB
TypeScript

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);
};