zhxy-jzd/src/api/base/server.ts

190 lines
4.4 KiB
TypeScript
Raw Normal View History

2025-04-30 01:43:23 +08:00
// 参数接口
// 响应接口
2025-05-16 16:16:41 +08:00
import { get, post } from "@/utils/request";
2025-04-30 01:43:23 +08:00
2025-05-16 16:16:41 +08:00
export const loginRegisterJzApi = async (params: any) => {
return await post("/open/login/registerJz", params);
2025-04-30 01:43:23 +08:00
};
2025-06-24 20:33:42 +08:00
export const glxsApi = async (params: any) => {
return await post("/open/login/glxs", params);
};
2025-05-16 16:16:41 +08:00
export const xkAddXkqdApi = async (params: any) => {
return await post("/mobile/xk/addXkqd", params);
2025-04-30 01:43:23 +08:00
};
2025-05-16 16:16:41 +08:00
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);
2025-04-30 01:43:23 +08:00
};
2025-05-30 17:22:30 +08:00
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);
};
2025-06-14 22:28:04 +08:00
2025-07-17 14:01:17 +08:00
/**
*
*/
export const gzlGetDqXqAndZcApi = async () => {
return await get("/api/gzl/getDqXqAndZc");
};
2025-06-30 23:44:07 +08:00
// 获取配置:家长端是否显示分钟数
export const getJzdShowFs = async () => {
2025-06-30 23:44:07 +08:00
return await get("/api/comConfig/getJzdShowFs");
};
/**
*
*/
export const cmsArticlePageApi = async (params: any) => {
return await get("/api/cms/article/findPage", params);
};
2025-06-14 22:28:04 +08:00
/**
*
*/
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);
};
/**
*
*/
2025-06-30 23:44:07 +08:00
export const xsKxApi = async (params: any) => {
return await get("/mobile/jz/xkkc/list", params);
};
2025-06-29 19:24:41 +08:00
/**
2025-06-30 23:44:07 +08:00
*
2025-06-29 19:24:41 +08:00
*/
2025-06-30 23:44:07 +08:00
export const xsYxListApi = async (params: any) => {
return await get("/mobile/jz/xsxk/list", params);
2025-06-29 19:24:41 +08:00
};
/**
*
*/
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);
};
2025-06-29 15:28:57 +08:00
/**
*
*/
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);
};
2025-06-29 15:28:57 +08:00
/**
*
*/
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);
};
2025-06-29 15:28:57 +08:00
/**
* 退
*/
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);
};
2025-07-07 21:10:34 +08:00
/**
*
*/
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);
};
2025-07-06 21:49:44 +08:00
/**
*
*/
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) => {
2025-07-07 11:48:25 +08:00
return await get("/activiti/history/historicFlow", params);
2025-07-06 21:49:44 +08:00
};
2025-07-21 20:21:57 +08:00
/**
*
*/
export const getUserLatestInfoApi = async () => {
return await get("/open/login/getLatestInfo");
};