提交代码

This commit is contained in:
zlwu committed 2025-07-27 11:52:17 +08:00
1 parent 6a0eeec01e
commit eda12ddf59
13 files changed
+4629

No files matched your search

+63
View File
@@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { StuColBatchVO, StuColBatchForm, StuColBatchQuery } from '@/api/stuMsgSupply/types';
/**
* 查询学生信息收集批次列表
* @param query
* @returns {*}
*/
export const listStuColBatch = (query?: StuColBatchQuery): AxiosPromise<StuColBatchVO[]> => {
return request({
url: '/XgStuColBatch/stuColBatch/list',
method: 'get',
params: query
});
};
/**
* 查询学生信息收集批次详细
* @param id
*/
export const getStuColBatch = (id: string | number): AxiosPromise<StuColBatchVO> => {
return request({
url: '/XgStuColBatch/stuColBatch/' + id,
method: 'get'
});
};
/**
* 新增学生信息收集批次
* @param data
*/
export const addStuColBatch = (data: StuColBatchForm) => {
return request({
url: '/XgStuColBatch/stuColBatch',
method: 'post',
data: data
});
};
/**
* 修改学生信息收集批次
* @param data
*/
export const updateStuColBatch = (data: StuColBatchForm) => {
return request({
url: '/XgStuColBatch/stuColBatch',
method: 'put',
data: data
});
};
/**
* 删除学生信息收集批次
* @param id
*/
export const delStuColBatch = (id: string | number | Array<string | number>) => {
return request({
url: '/XgStuColBatch/stuColBatch/' + id,
method: 'delete'
});
};
+101
View File
@@ -0,0 +1,101 @@
export interface StuColBatchVO {
/**
* 批次ID
*/
id: string | number;
/**
* 批次名称
*/
batchName: string;
/**
* 批次描述
*/
description: string;
/**
* 开始时间
*/
startTime: string;
/**
* 结束时间
*/
endTime: string;
/**
* 状态(0正常 1停用)
*/
status: string;
/**
* 收集类型 1 - 新学期收集 2 - 其他
*/
collectionType: string;
}
export interface StuColBatchForm extends BaseEntity {
/**
* 批次ID
*/
id?: string | number;
/**
* 批次名称
*/
batchName?: string;
/**
* 批次描述
*/
description?: string;
/**
* 开始时间
*/
startTime?: string;
/**
* 结束时间
*/
endTime?: string;
/**
* 状态(0正常 1停用)
*/
status?: string;
/**
* 收集类型 1 - 新学期收集 2 - 其他
*/
collectionType?: string;
}
export interface StuColBatchQuery extends PageQuery {
/**
* 批次名称
*/
batchName?: string;
/**
* 状态(0正常 1停用)
*/
status?: string;
/**
* 收集类型 1 - 新学期收集 2 - 其他
*/
collectionType?: string;
/**
* 日期范围参数
*/
params?: any;
}
@@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { StudentMsgBatchVO, StudentMsgBatchForm, StudentMsgBatchQuery } from '@/api/studentMsgBatch/studentMsgBatch/types';
/**
* 查询学生信息批次收集列表
* @param query
* @returns {*}
*/
export const listStudentMsgBatch = (query?: StudentMsgBatchQuery): AxiosPromise<StudentMsgBatchVO[]> => {
return request({
url: '/studentMsgBatch/studentMsgBatch/list',
method: 'get',
params: query
});
};
/**
* 查询学生信息批次收集详细
* @param id
*/
export const getStudentMsgBatch = (id: string | number): AxiosPromise<StudentMsgBatchVO> => {
return request({
url: '/studentMsgBatch/studentMsgBatch/' + id,
method: 'get'
});
};
/**
* 新增学生信息批次收集
* @param data
*/
export const addStudentMsgBatch = (data: StudentMsgBatchForm) => {
return request({
url: '/studentMsgBatch/studentMsgBatch',
method: 'post',
data: data
});
};
/**
* 修改学生信息批次收集
* @param data
*/
export const updateStudentMsgBatch = (data: StudentMsgBatchForm) => {
return request({
url: '/studentMsgBatch/studentMsgBatch',
method: 'put',
data: data
});
};
/**
* 删除学生信息批次收集
* @param id
*/
export const delStudentMsgBatch = (id: string | number | Array<string | number>) => {
return request({
url: '/studentMsgBatch/studentMsgBatch/' + id,
method: 'delete'
});
};
File diff suppressed because it is too large. Load diff