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

467 lines
13 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-09-10 20:42:41 +08:00
export const findAllNjBjKzTreeApi = async () => {
return await get("/api/nj/findAllNjBjKzTree");
};
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-07-09 22:22:34 +08:00
export const findAllNjBjTree = async () => {
return await get("/api/nj/findAllNjBjTree");
};
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-07-18 14:20:12 +08:00
export const zwGetListByLxApi = async (params: any) => {
return await get("/api/zw/getListByLx", params);
};
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-07-23 22:32:01 +08:00
// 根据年级/班级ID查询教师
export const jsFindByNjIdOrBjIdApi = async (params: { njOrBjId: string }) => {
return await get(`/api/js/findByNjIdOrBjId?njOrBjId=${params.njOrBjId}`);
};
// 根据科目ID查询教师
export const jsFindByKmIdApi = async (params: { kmId: string }) => {
return await get(`/api/js/findByKmId?kmId=${params.kmId}`);
};
// 根据班主任年级ID查询教师
export const jsFindByBzrNjIdApi = async (params: { njId: string }) => {
return await get(`/api/js/findByBzrNjId?njId=${params.njId}`);
};
// 根据职务ID查询教师
2025-07-30 01:02:14 +08:00
export const jsFindByZwIdApi = async (params: {
zwId: string;
zwType: string;
}) => {
return await get(
`/api/js/findByZwId?zwId=${params.zwId}&zwType=${params.zwType}`
);
2025-07-23 22:32:01 +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
};
2025-07-30 01:02:14 +08:00
// 获取班级学生考试成绩(按科目)
export const jsdBjKscjKmApi = async (params: any) => {
return await get("/mobile/js/kscj/bjKm", params);
};
// 获取考试场次列表
export const jsdKsccListApi = async (params: any) => {
return await get("/api/kscc/findPage", params);
};
// 获取教师授课班级列表
export const jsdJsdkbApi = async (params: any) => {
return await get("/mobile/js/jsdkb", params);
};
// 获取班级考试场次列表
export const jsdKsccApi = async (params: any) => {
return await get("/mobile/js/kscc", params);
};
// 获取考试场次科目列表
export const ksccKmFindByKsccIdApi = async (params: any) => {
return await get("/api/kscc/findKsccKmmcById", params);
};
2025-07-09 22:22:34 +08:00
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) => {
2025-07-30 01:02:14 +08:00
return await get("/api/db/findPage", params);
};
// 处理待办
export const dbBlApi = async (params: any) => {
2025-07-30 01:02:14 +08:00
return await post("/api/db/bl", params);
};
// 查询学生请假信息
export const xsQjFindByIdApi = async (params: any) => {
2025-08-28 00:59:35 +08:00
return await get("/api/xsQj/getDetail", params);
};
2025-10-24 21:29:01 +08:00
// 学生请假确认放行
export const xsQjConfirmReleaseApi = async (params: any) => {
return await post("/api/xsQj/confirmRelease", params);
};
// 学生请假审批
export const xsQjSpApi = async (params: any) => {
2025-07-30 01:02:14 +08:00
return await post("/api/xsQj/sp", params);
};
// 学生请假审批终止
export const xsQjStopApi = async (params: any) => {
return await post("/api/xsQj/stop", params);
};
// 学生请假审批转办
export const xsQjTransferApi = async (params: any) => {
return await post("/api/xsQj/transfer", params);
};
2025-08-28 00:57:52 +08:00
// 获取学生请假审批流程
export const getXsQjApprovalProcessApi = async (ywId: string, ywType: string = 'XS_QJ') => {
return await get("/api/lcglSp/getByYwIdAndYwType", { ywId, ywType });
};
// 获取学生请假详情
export const getXsQjDetailApi = async (id: string) => {
return await get("/api/xsQj/getDetail", { id });
};
2025-07-09 22:22:34 +08:00
// 获取所有班级
export const bjFindAllApi = async (params: any) => {
2025-07-30 01:02:14 +08:00
return await get("/api/bj/findAll", params);
2025-07-09 22:22:34 +08:00
};
2025-07-08 22:20:22 +08:00
// 获取学生列表
export const xsFindList = async (params: any) => {
2025-07-30 01:02:14 +08:00
return await get("/api/xs/findPage", params);
2025-07-08 22:20:22 +08:00
};
// 获取学生家长列表
export const xsJzListByXsIdApi = async (params: any) => {
2025-07-30 01:02:14 +08:00
return await get("/api/jz/getListByXsId", params);
2025-07-08 22:20:22 +08:00
};
2025-10-29 10:30:04 +08:00
// 资源目录树形
export const zymlFindTreeApi = async () => {
return await get("/api/zyml/qryTreeReturn");
2025-07-09 17:04:25 +08:00
};
2025-10-29 10:30:04 +08:00
// 根据资源类型获取资源目录树形
export const zymlFindTreeByZylxApi = async (params: any) => {
return await get("/api/zyml/qryTreeByZylx", params);
2025-10-11 21:11:16 +08:00
};
2025-10-31 12:04:23 +08:00
// ==================== 资源包Zy相关API ====================
// 获取资源包分页列表
export const zyFindPageApi = async (params: any) => {
return await get("/api/zy/findPage", params);
};
// 保存资源包(新增/编辑)
export const zySaveApi = async (params: any) => {
return await post("/api/zy/save", params);
};
// 收藏/取消收藏资源包
export const zyCollectApi = async (params: { zyId: string }) => {
return await post(`/api/zy/collect?zyId=${params.zyId}`);
};
// 点赞/取消点赞资源包
export const zyLikeApi = async (params: { zyId: string }) => {
return await post(`/api/zy/like?zyId=${params.zyId}`);
};
// 评分资源包
export const zyScoreApi = async (params: { zyId: string; score: number; comment?: string }) => {
const queryParams = new URLSearchParams({
zyId: params.zyId,
score: params.score.toString(),
...(params.comment ? { comment: params.comment } : {})
});
return await post(`/api/zy/score?${queryParams.toString()}`);
};
// 根据ID查询资源包详情包含资源明细和用户状态
export const zyGetDetailApi = async (params: { id: string }) => {
return await get("/api/zy/getDetail", params);
};
// 删除资源包
export const zyLogicDeleteApi = async (params: { ids: string }) => {
return await post("/api/zy/logicDelete", params);
};
// ==================== 资源明细Zymx相关API ====================
2025-10-29 10:30:04 +08:00
// 获取资源明细分页
export const zymxFindPageApi = async (params: any) => {
return await get("/api/zymx/findPage", params);
2025-07-09 18:06:08 +08:00
};
2025-07-27 21:56:11 +08:00
2025-10-29 10:30:04 +08:00
// 根据资源类型获取资源明细分页
export const zymxFindPageByZylxApi = async (params: any) => {
return await get("/api/zymx/findPageByZylx", params);
2025-10-11 21:11:16 +08:00
};
2025-08-02 11:15:22 +08:00
// 教师积分查询
export const jsFindPageJfApi = async (params: any) => {
return await get("/api/js/findPageJf", params);
};
2025-12-08 20:03:34 +08:00
// 教师积分类型汇总
export const jfSummaryByJfTypeApi = async (params: any) => {
return await get("/api/jf/summaryByJfType", params);
};
// 顶级类型及下级可加分结构
export const jfTypeStructureApi = async (params: any) => {
return await get("/api/jf/typeStructure", params);
};
// 顶级类型下的积分结构(按类型节点汇总)
export const jfScoreStructureApi = async (params: any) => {
return await get("/api/jf/scoreStructure", params);
};
// 查询积分记录列表
export const jfFindPageApi = async (params: any) => {
return await get("/api/jf/findPage", params);
};
// 积分申请(走审批流程)
export const jfSqApi = async (params: any) => {
return await post("/api/jf/sq", params);
};
// 积分待办/已办列表
export const jfFindUserTodosPageApi = async (params: any) => {
return await get("/api/jf/findUserTodosPage", params);
};
// 保存积分记录(新增/修改)
export const jfSaveApi = async (params: any) => {
return await post("/api/jf/save", params);
};
// 积分审批-同意/驳回
export const jfSpApi = async (params: any) => {
return await post("/api/jf/sp", params);
};
// 积分审批-转办
export const jfTransferApi = async (params: any) => {
return await post("/api/jf/transfer", params);
};
// 积分审批-终止
export const jfStopApi = async (params: any) => {
return await post("/api/jf/stop", params);
};
// 积分审批-重新提交
export const jfReSubmitApi = async (params: any) => {
return await post("/api/jf/reSubmit", params);
};
// 积分审批-流程详情
export const jfFlowByIdApi = async (params: any) => {
return await get("/api/jf/flowById", params);
};
// 查询积分项目列表(树形结构)
export const jfTypeFindPageApi = async (params: any) => {
return await get("/api/jfType/findPage", params);
};
// 查询积分规则列表
export const jfRuleFindPageApi = async (params: any) => {
return await get("/api/jfRule/findPage", params);
};
2025-08-02 11:15:22 +08:00
// 检查项查询
export const inspectItemFindAllApi = async (params: any) => {
return await get("/api/inspectItem/findAlls", params);
};
2025-10-29 10:30:04 +08:00
export const zymxSaveApi = async (params: any) => {
return await post("/api/zymx/save", params);
2025-07-27 21:56:11 +08:00
};
2025-10-29 10:30:04 +08:00
export const zymxAddNumByTypeApi = async (params: any) => {
return await post("/api/zymx/addNumByType", params);
2025-07-09 17:04:25 +08:00
};
2025-07-13 18:33:09 +08:00
// 获取校平均工作量
export const getJsPjGzlApi = async () => {
return await get("/api/comConfig/getJsPjGzl");
};
2025-07-09 22:22:34 +08:00
2025-07-18 15:18:31 +08:00
/**
*
*/
export const gzlGetDqXqAndZcApi = async () => {
return await get("/api/gzl/getDqXqAndZc");
};
/**
*
*/
export const dqpkApi = async () => {
2025-07-30 01:02:14 +08:00
return await get("/mobile/jz/pkkb/dqpk");
2025-07-18 15:18:31 +08:00
};
2025-07-09 22:22:34 +08:00
2025-07-18 15:18:31 +08:00
/**
*
*/
export const drpkkbApi = async (params: any) => {
return await get("/mobile/js/pkkb/drpkkb", params);
};
2025-07-09 22:22:34 +08:00
2025-07-21 20:24:23 +08:00
/**
*
*/
export const getRzRjApi = async (params: any) => {
return await get("/mobile/js/getRzRj", params);
};
2025-07-23 22:32:01 +08:00
// 签到发布相关API
// 获取签到发布列表
export const qdzxFindPageApi = async (params: any) => {
return await get("/api/qdzx/findPage", params);
};
// 保存签到发布(新增/编辑)
export const qdzxSaveApi = async (params: any) => {
return await post("/api/qdzx/save", params);
};
// 根据签到ID查询签到执行情况教师列表
export const qdzxFindByQdParamsApi = async (params: { qdId: string }) => {
return await get("/api/qdzx/findByQdParams", params);
};
2025-07-30 01:02:14 +08:00
export const qdzxFindByQdAndJsApi = async (params: {
qdId: string;
jsId: string;
}) => {
2025-07-23 22:32:01 +08:00
return await get("/api/qdzx/findByQdAndJs", params);
};
// 保存签到消息推送
export const xxtsSaveByQdzxParamsApi = async (params: { qdId: string }) => {
return await post("/api/xxts/saveByQdzxParams", params);
};
// 签到主表相关API
// 获取签到列表
export const qdFindPageApi = async (params: any) => {
return await get("/api/qd/findPage", params);
};
// 保存签到(新增/编辑)
export const qdSaveApi = async (params: any) => {
return await post("/api/qd/save", params);
};
// 根据ID获取签到详情
export const qdFindByIdApi = async (params: { id: string }) => {
return await get(`/api/qd/findById?id=${params.id}`);
};
// 签到执行相关API
export const qdzxSignInApi = async (params: any) => {
return await post("/api/qdzx/signIn", params);
};
// 生成签到二维码
export const generateQRCodeApi = async (params: { qdId: string }) => {
return await post("/api/qdzx/generateQRCode", params);
};
// 年级相关API
export const findAllNj = async () => {
return await get("/api/nj/findAllNj");
};
// 职务相关API
export const zwFindAllApi = async () => {
return await get("/api/zw/findAll");
};
2025-08-02 11:15:22 +08:00
// 获取积分详情数据
export const getByUserIdAndInspectItemIdApi = async (params: any) => {
return await get("/api/evaluation/getByUserIdAndInspectItemId", params);
};
// 清空用户open_id
export const clearUserOpenIdApi = async (params: { userId: string }) => {
2025-08-11 21:11:19 +08:00
return await post("/api/user/clearUserOpenId", params);
};
/**
* API
*/
export const jsdXkkcPhotoSaveApi = async (params: any) => {
return await post("/mobile/js/xk/photo/save", params);
2025-08-02 11:15:22 +08:00
};
2025-10-29 10:30:04 +08:00
/**
*
*/
export const dicFindByPidApi = async (params: { pid: string }) => {
return await get("/api/dic/findByPid", params);
};