121 lines
2.9 KiB
TypeScript
121 lines
2.9 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 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 getLatestInterestCourseApi = async (params: any) => {
|
|
return await get("/api/xk/getLatestInterestCourse", params);
|
|
};
|
|
|
|
/**
|
|
* 获取当前学期教师上课课程列表
|
|
*/
|
|
export const getCurrentSemesterTeacherCoursesApi = async (jsId?: string) => {
|
|
const params = jsId ? { jsId } : {};
|
|
return await get("/api/xkkc/getCurrentSemesterTeacherCourses", params);
|
|
};
|
|
|
|
/**
|
|
* 获取当前学期和周次
|
|
*/
|
|
export const gzlGetDqXqAndZcApi = async () => {
|
|
return await get("/api/gzl/getDqXqAndZc");
|
|
};
|
|
|
|
/**
|
|
* 当前学期排课公共配置(排课设置、排课周次、排课时间)
|
|
*/
|
|
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 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 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;
|
|
njId?: string;
|
|
njmcId?: string;
|
|
bjId?: string;
|
|
}) => {
|
|
return await get("/api/jlzx/findByJlParams", params);
|
|
};
|
|
|
|
/**
|
|
* 家长接龙完成
|
|
*/
|
|
export const relayFinishApi = async (params: any) => {
|
|
return await post('/mobile/jl/relay/finish', params);
|
|
};
|
|
|
|
/**
|
|
* 查询学生请假流程处理历史
|
|
*/
|
|
export const jzXsQjActivitiHistoryApi = async (params: any) => {
|
|
return await get("/activiti/history/historicFlow", params);
|
|
};
|
|
|
|
/**
|
|
* 获取用户最新信息(包含学生信息)
|
|
*/
|
|
export const getUserLatestInfoApi = async () => {
|
|
return await get("/open/login/getLatestInfo");
|
|
};
|