zhxy-jzd/src/api/base/server.ts
2025-07-21 20:21:57 +08:00

190 lines
4.4 KiB
TypeScript

// 参数接口
// 响应接口
import { get, post } from "@/utils/request";
export const loginRegisterJzApi = async (params: any) => {
return await post("/open/login/registerJz", params);
};
export const glxsApi = async (params: any) => {
return await post("/open/login/glxs", params);
};
export const xkAddXkqdApi = async (params: any) => {
return await post("/mobile/xk/addXkqd", params);
};
export const xkListApi = async (params: any) => {
return await get("/mobile/xk/list", params);
};
export const xkXkqdApi = async (params: any) => {
return await get("/mobile/xk/xkqd", params);
};
export const kcjhFindKcjhByKcIdApi = async (params: any) => {
return await get("/api/kcjh/findKcjhByKcId", params);
};
export const xkgzsApi = async (params: any) => {
return await get("/api/gzs/findPage", params);
};
export const xkxkbmInfoApi = async (params: any) => {
return await get("/mobile/xk/xkbmInfo", params);
};
export const xkqddeleteApi = async (params: any) => {
return await post("/api/xkqd/delete?ids=" + params.ids);
};
/**
* 获取当前学期和周次
*/
export const gzlGetDqXqAndZcApi = async () => {
return await get("/api/gzl/getDqXqAndZc");
};
// 获取配置:家长端是否显示分钟数
export const getJzdShowFs = async () => {
return await get("/api/comConfig/getJzdShowFs");
};
/**
* 当前学期排课公共配置(排课设置、排课周次、排课时间)
*/
export const cmsArticlePageApi = async (params: any) => {
return await get("/api/cms/article/findPage", params);
};
/**
* 当前学期排课公共配置(排课设置、排课周次、排课时间)
*/
export const dqpkApi = async () => {
return await get("/mobile/jz/pkkb/dqpk" );
};
/**
* 单日的排课课表
*/
export const drpkkbApi = async (params: any) => {
return await get("/mobile/jz/pkkb/drpkkb", params);
};
/**
* 查询学生选课列表
*/
export const xsKxApi = async (params: any) => {
return await get("/mobile/jz/xkkc/list", params);
};
/**
* 学生已选课程列表
*/
export const xsYxListApi = async (params: any) => {
return await get("/mobile/jz/xsxk/list", params);
};
/**
* 查询学生考试场次
*/
export const xsKsccApi = async (params: any) => {
return await get("/mobile/jz/kscc", params);
};
/**
* 查询学生考试成绩
*/
export const xsKscjApi = async (params: any) => {
return await get("/mobile/jz/kscj", 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 mobilejzjllistApi = async (params: any) => {
const res = await get("/mobile/jl/jzList", params);
return res.result;
};
export const getByJlIdApi = async (params: any) => {
const res = await get("/mobile/jl/getByJlId", params);
return res.result;
};
// 推送清单相关API
// 根据接龙ID获取学生信息
export const jlzxFindByJlParamsApi = async (params: { jlId: string }) => {
return await get("/api/jlzx/findByJlParams", params);
};
/**
* 家长接龙完成
*/
export const relayFinishApi = async (params: any) => {
return await post('/mobile/jl/relay/finish', params);
};
/**
* 发起学生请假
*/
export const jzAddXsQjApi = async (params: any) => {
return await post("/api/xsQj/save", params);
};
/**
* 查询学生请假列表
*/
export const jzXsQjListApi = async (params: any) => {
return await get("/api/xsQj/findPage", params);
};
/**
* 查询学生请假流程处理历史
*/
export const jzXsQjActivitiHistoryApi = async (params: any) => {
return await get("/activiti/history/historicFlow", params);
};
/**
* 获取用户最新信息(包含学生信息)
*/
export const getUserLatestInfoApi = async () => {
return await get("/open/login/getLatestInfo");
};