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

135 lines
3.6 KiB
TypeScript
Raw Normal View History

2025-04-22 10:22:33 +08:00
// 参数接口
// 响应接口
2025-07-02 22:43:30 +08:00
import { get, post } from "@/utils/request";
2025-04-22 10:22:33 +08:00
/**
*
*/
2025-05-13 15:39:44 +08:00
export const xqgwFindAllApi = async () => {
2025-07-02 22:43:30 +08:00
return await get("/api/xqgw/findAll");
2025-04-22 10:22:33 +08:00
};
2025-05-13 15:39:44 +08:00
export const xqxjFindAllApi = async () => {
2025-07-02 22:43:30 +08:00
return await get("/api/xqxj/findAll");
2025-04-22 10:22:33 +08:00
};
2025-05-13 15:39:44 +08:00
export const findAllNjBjTreeApi = async () => {
2025-07-02 22:43:30 +08:00
return await get("/api/nj/findAllNjBjTree");
2025-05-13 15:39:44 +08:00
};
2025-06-04 20:52:34 +08:00
export const kmFindAllApi = async () => {
2025-07-02 22:43:30 +08:00
return await get("/api/km/findAll");
2025-06-04 20:52:34 +08:00
};
export const findAllXxXqNjTree = async () => {
2025-07-02 22:43:30 +08:00
return await get("/api/nj/findAllXxXqNjTree");
2025-06-04 20:52:34 +08:00
};
2025-05-13 15:39:44 +08:00
export const jsConfirmJsDataApi = async (params: any) => {
2025-07-02 22:43:30 +08:00
return await post("/api/js/confirmJsData", params);
2025-04-22 10:22:33 +08:00
};
2025-06-08 19:07:15 +08:00
export const jsdFindPageTaskApi = async (params: any) => {
2025-07-02 22:43:30 +08:00
return await get("/api/jsd/findPageTask", params);
2025-06-08 19:07:15 +08:00
};
2025-06-22 18:36:25 +08:00
export const rwflFindRwlxsByRwId = async (params: any) => {
2025-07-02 22:43:30 +08:00
return await get("/api/rwlx/findRwlxsByRwId", params);
};
2025-06-22 18:36:25 +08:00
export const rwzxSaveApi = async (params: any) => {
2025-07-02 22:43:30 +08:00
return await post("/api/rwzx/save", params);
2025-06-22 18:36:25 +08:00
};
2025-06-22 21:32:20 +08:00
export const rwzxExecutedInfoByRwIdAndJsApi = async (params: any) => {
2025-07-02 22:43:30 +08:00
return await get("/api/rwzx/executedInfoByRwIdAndJs", params);
2025-06-22 21:32:20 +08:00
};
2025-06-22 18:36:25 +08:00
export const rwFindInfoByRwId = async (params: any) => {
2025-07-02 22:43:30 +08:00
return await get("/api/rw/findInfoByRwId", params);
};
2025-06-22 18:36:25 +08:00
2025-06-10 23:40:49 +08:00
export const fractionRuleApi = async () => {
2025-07-02 22:43:30 +08:00
return await get(
"/api/fractionRule/findAllByItemId?itemId=CDFDED2A704F46E2A4D7E8816968BD23"
);
2025-06-10 23:40:49 +08:00
};
export const fractionRuleApi1 = async () => {
2025-07-02 22:43:30 +08:00
return await get(
"/api/fractionRule/findAllByItemId?itemId=B96A0FA22C414F71A3E1CDCA7E206B10"
);
2025-06-10 23:40:49 +08:00
};
2025-06-20 09:51:43 +08:00
2025-06-20 18:38:22 +08:00
// 查询教师信息
export const jsdfindJsByPhoneApi = async (params: any) => {
2025-07-02 22:43:30 +08:00
return await get("/api/js/findJsByPhone", params);
2025-06-20 18:38:22 +08:00
};
2025-06-20 09:51:43 +08:00
// 选课列表
export const jsdXkListApi = async (params: any) => {
2025-07-02 22:43:30 +08:00
return await get("/mobile/js/xk/list", params);
2025-06-20 09:51:43 +08:00
};
// 选课列表
export const jsdXkkcSaveApi = async (params: any) => {
2025-07-02 22:43:30 +08:00
return await post("/api/xkkc/save", params);
2025-06-20 09:51:43 +08:00
};
// 选课学生列表
export const jsdXkXsListApi = async (params: any) => {
2025-07-02 22:43:30 +08:00
return await get("/mobile/js/xkxs/list", params);
};
export const mobilejlstudentListApi = async (params: any) => {
return await get("/mobile/jl/studentList", params);
};
export const mobilejllistApi = async (params: any) => {
const res = await get("/mobile/jl/list", params);
return res.result;
2025-06-20 09:51:43 +08:00
};
// 提交点名信息
export const jsdXkdmListApi = async (params: any) => {
2025-07-02 22:43:30 +08:00
return await post("/mobile/js/xkdm/add", params);
2025-06-22 18:36:25 +08:00
};
// 获取待办列表
export const dbListApi = async (params: any) => {
return await get("/api/db/findPage", params);
};
// 处理待办
export const dbBlApi = async (params: any) => {
return await post("/api/db/bl", params);
};
// 查询学生请假信息
export const xsQjFindByIdApi = async (params: any) => {
return await get("/api/xsQj/findById", params);
};
// 学生请假审批
export const xsQjSpApi = async (params: any) => {
return await post("/api/xsQj/sp", params);
};
2025-07-08 22:20:22 +08:00
// 获取学生列表
export const xsFindList = async (params: any) => {
return await get("/api/xs/findPage", params);
};
// 获取学生家长列表
export const xsJzListByXsIdApi = async (params: any) => {
return await get("/api/jz/getListByXsId", params);
};
2025-07-09 17:04:25 +08:00
// 教学资源树形
export const typesFindTreeApi = async () => {
return await get("/api/types/qryTreeReturn");
};
// 获取资源分页
export const resourcesFindPageApi = async (params: any) => {
2025-07-09 18:06:08 +08:00
return await get("/api/resources/findPage", params);
};
// 获取资源分页
export const resourcesAddNumByTypeApi = async (params: any) => {
return await post("/api/resources/addNumByType", params);
2025-07-09 17:04:25 +08:00
};
2025-07-08 22:20:22 +08:00