// 选课相关接口 import { get, post } from "@/utils/request"; /** * 校验学生选课(即进入页面前的校验查询) */ export const checkXsXkApi = async (params: any) => { return await get("/mobile/jz/checkXsXk", params); }; /** * 学生已选课程列表 */ export const getXsXkListApi = async (params: any) => { return await get("/mobile/jz/getXsXkList", params); }; /** * 家长抢课 */ export const jzXkQkjApi = async (params: any) => { return await post("/mobile/jz/xk/qk", params); }; /** * 家长获取抢课到期时间 */ export const jzGetQkExpiredTime = async (params: any) => { return await get("/mobile/jz/xk/getQkExpiredTime", params); }; /** * 家长发起缴费 */ export const jzXkFqJfjApi = async (params: any) => { return await post("/mobile/jz/xk/fqjf", params); }; /** * 家长取消选课,不支付 */ export const jzXkCancelApi = async (params: any) => { return await post("/mobile/jz/xk/cancel", params); }; /** * 家长退课 */ export const jzXkTkjApi = async (params: any) => { return await post("/mobile/jz/xk/tk", params); }; /** * 家长缴费查询 */ export const jzXkJfCxjApi = async (params: any) => { return await post("/mobile/jz/xk/jfcx", params); }; /** * 查询学生当前学期是否选择了对应类型的选课 */ export const checkXsXkByTypeApi = async (params: any) => { return await get("/mobile/jz/xk/checkXsXkByType", params); }; /** * 获取学生选课状态和限制信息 */ export const getXsXkStatusApi = async (params: any) => { return await get("/mobile/jz/xkkc/list", params); }; export const xkqddeleteApi = async (params: any) => { return await post("/api/xkqd/delete?ids=" + params.ids); }; export const xkkclxFindAllApi = async () => { return await get("/api/xkkclx/findByXkkclx"); }; /** * 获取课程详情 * @param params * @returns */ export const getXkkcDetailByIdApi = async (id: string) => { return await get("/api/xkkc/getXkkcDetailById?id=" + id); }; /** * 校验学生选课退费(用于退费时使用) */ export const checkXkTfApi = async (params: any) => { return await get("/mobile/jz/checkXkTf", params); }; /** * 获取选课退费分页查询 * @param params * @returns */ export const findPageXkTfApi = async (params: any) => { return await get("/api/xkTf/findPage", params); }; /** * 获取选课退费详情 * @param params * @returns */ export const getXkTfDetailByIdApi = async (id: string) => { return await get("/api/xkTf/getDetailById?id=" + id); }; /** * 家长申请退费 */ export const xkTfSqApi = async (params: any) => { return await post("/api/xkTf/sq", params); };