362 lines
10 KiB
TypeScript
362 lines
10 KiB
TypeScript
// 参数接口
|
||
|
||
// 响应接口
|
||
import { get, post } from "@/utils/request";
|
||
|
||
/**
|
||
* 获取服务器时间
|
||
*/
|
||
export const xqgwFindAllApi = async () => {
|
||
return await get("/api/xqgw/findAll");
|
||
};
|
||
export const xqxjFindAllApi = async () => {
|
||
return await get("/api/xqxj/findAll");
|
||
};
|
||
export const findAllNjBjTreeApi = async () => {
|
||
return await get("/api/nj/findAllNjBjTree");
|
||
};
|
||
export const kmFindAllApi = async () => {
|
||
return await get("/api/km/findAll");
|
||
};
|
||
export const findAllXxXqNjTree = async () => {
|
||
return await get("/api/nj/findAllXxXqNjTree");
|
||
};
|
||
export const findAllNjBjTree = async () => {
|
||
return await get("/api/nj/findAllNjBjTree");
|
||
};
|
||
export const jsConfirmJsDataApi = async (params: any) => {
|
||
return await post("/api/js/confirmJsData", params);
|
||
};
|
||
export const jsdFindPageTaskApi = async (params: any) => {
|
||
return await get("/api/jsd/findPageTask", params);
|
||
};
|
||
export const rwflFindRwlxsByRwId = async (params: any) => {
|
||
return await get("/api/rwlx/findRwlxsByRwId", params);
|
||
};
|
||
export const rwzxSaveApi = async (params: any) => {
|
||
return await post("/api/rwzx/save", params);
|
||
};
|
||
export const rwzxExecutedInfoByRwIdAndJsApi = async (params: any) => {
|
||
return await get("/api/rwzx/executedInfoByRwIdAndJs", params);
|
||
};
|
||
|
||
export const rwFindInfoByRwId = async (params: any) => {
|
||
return await get("/api/rw/findInfoByRwId", params);
|
||
};
|
||
|
||
export const fractionRuleApi = async () => {
|
||
return await get(
|
||
"/api/fractionRule/findAllByItemId?itemId=CDFDED2A704F46E2A4D7E8816968BD23"
|
||
);
|
||
};
|
||
export const fractionRuleApi1 = async () => {
|
||
return await get(
|
||
"/api/fractionRule/findAllByItemId?itemId=B96A0FA22C414F71A3E1CDCA7E206B10"
|
||
);
|
||
};
|
||
|
||
export const zwGetListByLxApi = async (params: any) => {
|
||
return await get("/api/zw/getListByLx", params);
|
||
};
|
||
|
||
// 查询教师信息
|
||
export const jsdfindJsByPhoneApi = async (params: any) => {
|
||
return await get("/api/js/findJsByPhone", params);
|
||
};
|
||
|
||
// 根据年级/班级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查询教师
|
||
export const jsFindByZwIdApi = async (params: {
|
||
zwId: string;
|
||
zwType: string;
|
||
}) => {
|
||
return await get(
|
||
`/api/js/findByZwId?zwId=${params.zwId}&zwType=${params.zwType}`
|
||
);
|
||
};
|
||
|
||
// 选课列表
|
||
export const jsdXkListApi = async (params: any) => {
|
||
return await get("/mobile/js/xk/list", params);
|
||
};
|
||
|
||
// 选课列表
|
||
export const jsdXkkcSaveApi = async (params: any) => {
|
||
return await post("/api/xkkc/save", params);
|
||
};
|
||
|
||
// 选课学生列表
|
||
export const jsdXkXsListApi = async (params: any) => {
|
||
return await get("/mobile/js/xkxs/list", params);
|
||
};
|
||
|
||
// 获取班级学生考试成绩(按科目)
|
||
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);
|
||
};
|
||
|
||
//根据年级ID和班级ID查询学生及家长信息
|
||
export const mobilejlstudentListApi = async (params: any) => {
|
||
return await get("/mobile/jl/studentList", params);
|
||
};
|
||
//根据年级ID、关联年级名称ID和学生ID查询家长接龙信息
|
||
export const mobilejllistApi = async (params: any) => {
|
||
const res = await get("/mobile/jl/list", params);
|
||
return res.result;
|
||
};
|
||
//根据jlId查询接龙列表数据
|
||
export const getByJlIdApi = async (params: any) => {
|
||
const res = await get("/mobile/jl/getByJlId", params);
|
||
return res.result;
|
||
};
|
||
|
||
// 提交点名信息
|
||
export const jsdXkdmListApi = async (params: any) => {
|
||
return await post("/mobile/js/xkdm/add", params);
|
||
};
|
||
|
||
// 获取待办列表
|
||
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 xxtsListApi = async (params: any) => {
|
||
return await get("/api/xxts/findPage", params);
|
||
};
|
||
|
||
// 处理消息推送(替代待办处理)
|
||
export const xxtsBlApi = async (params: any) => {
|
||
return await post("/api/xxts/bl", params);
|
||
};
|
||
|
||
// 根据ID获取消息推送详情
|
||
export const xxtsFindByIdApi = async (params: any) => {
|
||
return await get("/api/xxts/findById", 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);
|
||
};
|
||
|
||
// 获取所有班级
|
||
export const bjFindAllApi = async (params: any) => {
|
||
return await get("/api/bj/findAll", params);
|
||
};
|
||
|
||
// 获取学生列表
|
||
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);
|
||
};
|
||
|
||
// 教学资源树形
|
||
export const typesFindTreeApi = async () => {
|
||
return await get("/api/types/qryTreeReturn");
|
||
};
|
||
|
||
// 获取资源分页
|
||
export const resourcesFindPageApi = async (params: any) => {
|
||
return await get("/api/resources/findPage", params);
|
||
};
|
||
|
||
// 教师积分查询
|
||
export const jsFindPageJfApi = async (params: any) => {
|
||
return await get("/api/js/findPageJf", params);
|
||
};
|
||
|
||
// 检查项查询
|
||
export const inspectItemFindAllApi = async (params: any) => {
|
||
return await get("/api/inspectItem/findAlls", params);
|
||
};
|
||
|
||
export const resourcesSaveApi = async (params: any) => {
|
||
return await post("/api/resources/save", params);
|
||
};
|
||
|
||
export const resourcesAddNumByTypeApi = async (params: any) => {
|
||
return await post("/api/resources/addNumByType", params);
|
||
};
|
||
|
||
// 获取工作量
|
||
export const gzlFindPageApi = async (params: any) => {
|
||
return await get("/api/gzl/findPage", params);
|
||
};
|
||
|
||
// 获取校平均工作量
|
||
export const getJsPjGzlApi = async () => {
|
||
return await get("/api/comConfig/getJsPjGzl");
|
||
};
|
||
|
||
// 接龙相关API
|
||
// 根据ID获取接龙详情
|
||
export const jlFindByIdApi = async (params: { id: string }) => {
|
||
return await get("/api/jl/findById", params);
|
||
};
|
||
|
||
// 保存接龙(新增/编辑)
|
||
export const jlSaveApi = async (params: any) => {
|
||
return await post("/api/jl/save", params);
|
||
};
|
||
|
||
// 根据接龙ID查询接龙执行情况(学生列表)
|
||
export const jlzxFindByJlParamsApi = async (params: { jlId: string }) => {
|
||
return await get("/api/jlzx/findByJlParams", params);
|
||
};
|
||
|
||
// 保存接龙消息推送
|
||
export const xxtsSaveByJlzxParamsApi = async (params: { jlId: string }) => {
|
||
return await post("/api/xxts/saveByJlzxParams", params);
|
||
};
|
||
|
||
/**
|
||
* 获取当前学期和周次
|
||
*/
|
||
export const gzlGetDqXqAndZcApi = async () => {
|
||
return await get("/api/gzl/getDqXqAndZc");
|
||
};
|
||
|
||
/**
|
||
* 当前学期排课公共配置(排课设置、排课周次、排课时间)
|
||
*/
|
||
export const dqpkApi = async () => {
|
||
return await get("/mobile/jz/pkkb/dqpk");
|
||
};
|
||
|
||
/**
|
||
* 单日的排课课表
|
||
*/
|
||
export const drpkkbApi = async (params: any) => {
|
||
return await get("/mobile/js/pkkb/drpkkb", params);
|
||
};
|
||
|
||
/**
|
||
* 获取任职任教信息
|
||
*/
|
||
export const getRzRjApi = async (params: any) => {
|
||
return await get("/mobile/js/getRzRj", params);
|
||
};
|
||
|
||
// 签到发布相关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);
|
||
};
|
||
|
||
export const qdzxFindByQdAndJsApi = async (params: {
|
||
qdId: string;
|
||
jsId: string;
|
||
}) => {
|
||
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");
|
||
};
|
||
|
||
// 获取积分详情数据
|
||
export const getByUserIdAndInspectItemIdApi = async (params: any) => {
|
||
return await get("/api/evaluation/getByUserIdAndInspectItemId", params);
|
||
};
|
||
|
||
// 清空用户open_id
|
||
export const clearUserOpenIdApi = async (params: { userId: string }) => {
|
||
return await post(`/api/user/clearOpenId?userId=${params.userId}`);
|
||
};
|