wuzhen update test2

This commit is contained in:
wuzhen committed 2025-08-13 13:47:44 +08:00
1 parent 138a250f28
commit 1ece491bc8
10 files changed
+2640

No files matched your search

+61
View File
@@ -0,0 +1,61 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { InternshipInfoVO, InternshipInfoQuery, ClassInfoVO, InternshipStatisticsVO } from '@/api/zsjy/types';
/**
* 查询实习信息列表
* @param query 查询参数
*/
export const listInternshipInfo = (query?: InternshipInfoQuery): AxiosPromise<InternshipInfoVO[]> => {
return request({
url: '/zsjy/internship/list',
method: 'get',
params: query
});
};
/**
* 查询学生实习详细信息
* @param studentId 学生ID
*/
export const getInternshipInfo = (studentId: string | number): AxiosPromise<InternshipInfoVO> => {
return request({
url: `/zsjy/internship/${studentId}`,
method: 'get'
});
};
/**
* 导出实习信息列表
* @param query 查询参数
*/
export const exportInternshipInfo = (query: InternshipInfoQuery) => {
return request({
url: '/zsjy/internship/export',
method: 'post',
data: query,
responseType: 'blob'
});
};
/**
* 获取班级信息列表(用于下拉选择)
*/
export const getClassOptions = (): AxiosPromise<ClassInfoVO[]> => {
return request({
url: '/zsjy/internship/classes',
method: 'get'
});
};
/**
* 获取实习统计数据
* @param query 查询参数
*/
export const getInternshipStatistics = (query?: InternshipInfoQuery): AxiosPromise<InternshipStatisticsVO> => {
return request({
url: '/zsjy/internship/statistics',
method: 'get',
params: query
});
};