提交班级干部职务配置

This commit is contained in:
zlwu committed 2025-07-29 11:11:36 +08:00
1 parent 5231d97cc1
commit 0837e6defb
33 files changed
+4375 -145

No files matched your search

@@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { XgClassPosDictVO, XgClassPosDictForm, XgClassPosDictQuery } from '@/api/xgClassPosDict/xgClassPosDict/types';
/**
* 查询班级干部职务配置列表
* @param query
* @returns {*}
*/
export const listXgClassPosDict = (query?: XgClassPosDictQuery): AxiosPromise<XgClassPosDictVO[]> => {
return request({
url: '/xgClassPosDict/xgClassPosDict/list',
method: 'get',
params: query
});
};
/**
* 查询班级干部职务配置详细
* @param id
*/
export const getXgClassPosDict = (id: string | number): AxiosPromise<XgClassPosDictVO> => {
return request({
url: '/xgClassPosDict/xgClassPosDict/' + id,
method: 'get'
});
};
/**
* 新增班级干部职务配置
* @param data
*/
export const addXgClassPosDict = (data: XgClassPosDictForm) => {
return request({
url: '/xgClassPosDict/xgClassPosDict',
method: 'post',
data: data
});
};
/**
* 修改班级干部职务配置
* @param data
*/
export const updateXgClassPosDict = (data: XgClassPosDictForm) => {
return request({
url: '/xgClassPosDict/xgClassPosDict',
method: 'put',
data: data
});
};
/**
* 删除班级干部职务配置
* @param id
*/
export const delXgClassPosDict = (id: string | number | Array<string | number>) => {
return request({
url: '/xgClassPosDict/xgClassPosDict/' + id,
method: 'delete'
});
};
@@ -0,0 +1,171 @@
export interface XgClassPosDictVO {
/**
* 主键ID(雪花ID)
*/
id: string | number;
/**
* 删除标志(0代表存在 1代表删除)
*/
deleted: number;
/**
* 职务编码
*/
positionCode: string;
/**
* 职务名称
*/
positionName: string;
/**
* 学生职务类别:class-班级干部,party-党团干部,other-其他
*/
positionCategory: string;
/**
* 学生职务级别:monitor-班长,vice-monitor-副班长,committee-委员,ordinary-普通成员
*/
positionLevel: number;
/**
* 学生职务类型:regular-常规职务,special-特殊职务,temporary-临时职务
*/
positionType: string;
/**
* 职责描述
*/
responsibilities: string;
/**
* 状态:0-启用,1-停用
*/
status: string;
/**
* 排序顺序
*/
sortOrder: number;
/**
* 备注信息
*/
remark: string;
}
export interface XgClassPosDictForm extends BaseEntity {
/**
* 主键ID(雪花ID)
*/
id?: string | number;
/**
* 删除标志(0代表存在 1代表删除)
*/
deleted?: number;
/**
* 职务编码
*/
positionCode?: string;
/**
* 职务名称
*/
positionName?: string;
/**
* 学生职务类别:class-班级干部,party-党团干部,other-其他
*/
positionCategory?: string;
/**
* 学生职务级别:monitor-班长,vice-monitor-副班长,committee-委员,ordinary-普通成员
*/
positionLevel?: number;
/**
* 学生职务类型:regular-常规职务,special-特殊职务,temporary-临时职务
*/
positionType?: string;
/**
* 职责描述
*/
responsibilities?: string;
/**
* 状态:0-启用,1-停用
*/
status?: string;
/**
* 排序顺序
*/
sortOrder?: number;
/**
* 备注信息
*/
remark?: string;
}
export interface XgClassPosDictQuery extends PageQuery {
/**
* 删除标志(0代表存在 1代表删除)
*/
deleted?: number;
/**
* 职务编码
*/
positionCode?: string;
/**
* 职务名称
*/
positionName?: string;
/**
* 学生职务类别:class-班级干部,party-党团干部,other-其他
*/
positionCategory?: string;
/**
* 学生职务级别:monitor-班长,vice-monitor-副班长,committee-委员,ordinary-普通成员
*/
positionLevel?: number;
/**
* 学生职务类型:regular-常规职务,special-特殊职务,temporary-临时职务
*/
positionType?: string;
/**
* 职责描述
*/
responsibilities?: string;
/**
* 状态:0-启用,1-停用
*/
status?: string;
/**
* 排序顺序
*/
sortOrder?: number;
/**
* 日期范围参数
*/
params?: any;
}
@@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { XgClassPosMsgVO, XgClassPosMsgForm, XgClassPosMsgQuery } from '@/api/xgClassPosMsg/xgClassPosMsg/types';
/**
* 查询班级干部信息列表
* @param query
* @returns {*}
*/
export const listXgClassPosMsg = (query?: XgClassPosMsgQuery): AxiosPromise<XgClassPosMsgVO[]> => {
return request({
url: '/xgClassPosMsg/xgClassPosMsg/list',
method: 'get',
params: query
});
};
/**
* 查询班级干部信息详细
* @param id
*/
export const getXgClassPosMsg = (id: string | number): AxiosPromise<XgClassPosMsgVO> => {
return request({
url: '/xgClassPosMsg/xgClassPosMsg/' + id,
method: 'get'
});
};
/**
* 新增班级干部信息
* @param data
*/
export const addXgClassPosMsg = (data: XgClassPosMsgForm) => {
return request({
url: '/xgClassPosMsg/xgClassPosMsg',
method: 'post',
data: data
});
};
/**
* 修改班级干部信息
* @param data
*/
export const updateXgClassPosMsg = (data: XgClassPosMsgForm) => {
return request({
url: '/xgClassPosMsg/xgClassPosMsg',
method: 'put',
data: data
});
};
/**
* 删除班级干部信息
* @param id
*/
export const delXgClassPosMsg = (id: string | number | Array<string | number>) => {
return request({
url: '/xgClassPosMsg/xgClassPosMsg/' + id,
method: 'delete'
});
};
@@ -0,0 +1,276 @@
export interface XgClassPosMsgVO {
/**
* 主键ID(雪花ID)
*/
id: string | number;
/**
* 删除标志(0代表存在 1代表删除)
*/
deleted: number;
/**
* 班级ID,关联xg_class_msg.id
*/
classId: string | number;
/**
* 学生ID,关联xg_student_msg.id
*/
studentId: string | number;
/**
* 学号
*/
studentNo: string;
/**
* 学生姓名(冗余字段)
*/
studentName: string;
/**
* 职务编码,关联xg_class_pos_dict.position_code
*/
positionCode: string;
/**
* 任职日期
*/
appointmentDate: string;
/**
* 任期开始日期
*/
termStartDate: string;
/**
* 任期结束日期
*/
termEndDate: string;
/**
* 任期时长(月)
*/
termDuration: number;
/**
* 是否现任:0-否,1-是
*/
isCurrent: number;
/**
* 学生职务任职状态:1-在任,2-到期,3-辞职,4-免职,5-调任,6-休学
*/
cadreStatus: string;
/**
* 任命原因
*/
appointmentReason: string;
/**
* 学生职务任命方式:appointment-任命,election-选举,recommendation-推荐
*/
appointmentMethod: string;
/**
* 离任日期
*/
dismissalDate: string;
/**
* 离任原因
*/
dismissalReason: string;
/**
* 备注信息
*/
remark: string;
}
export interface XgClassPosMsgForm extends BaseEntity {
/**
* 主键ID(雪花ID)
*/
id?: string | number;
/**
* 删除标志(0代表存在 1代表删除)
*/
deleted?: number;
/**
* 班级ID,关联xg_class_msg.id
*/
classId?: string | number;
/**
* 学生ID,关联xg_student_msg.id
*/
studentId?: string | number;
/**
* 学号
*/
studentNo?: string;
/**
* 学生姓名(冗余字段)
*/
studentName?: string;
/**
* 职务编码,关联xg_class_pos_dict.position_code
*/
positionCode?: string;
/**
* 任职日期
*/
appointmentDate?: string;
/**
* 任期开始日期
*/
termStartDate?: string;
/**
* 任期结束日期
*/
termEndDate?: string;
/**
* 任期时长(月)
*/
termDuration?: number;
/**
* 是否现任:0-否,1-是
*/
isCurrent?: number;
/**
* 学生职务任职状态:1-在任,2-到期,3-辞职,4-免职,5-调任,6-休学
*/
cadreStatus?: string;
/**
* 任命原因
*/
appointmentReason?: string;
/**
* 学生职务任命方式:appointment-任命,election-选举,recommendation-推荐
*/
appointmentMethod?: string;
/**
* 离任日期
*/
dismissalDate?: string;
/**
* 离任原因
*/
dismissalReason?: string;
/**
* 备注信息
*/
remark?: string;
}
export interface XgClassPosMsgQuery extends PageQuery {
/**
* 删除标志(0代表存在 1代表删除)
*/
deleted?: number;
/**
* 班级ID,关联xg_class_msg.id
*/
classId?: string | number;
/**
* 学生ID,关联xg_student_msg.id
*/
studentId?: string | number;
/**
* 学号
*/
studentNo?: string;
/**
* 学生姓名(冗余字段)
*/
studentName?: string;
/**
* 职务编码,关联xg_class_pos_dict.position_code
*/
positionCode?: string;
/**
* 任职日期
*/
appointmentDate?: string;
/**
* 任期开始日期
*/
termStartDate?: string;
/**
* 任期结束日期
*/
termEndDate?: string;
/**
* 任期时长(月)
*/
termDuration?: number;
/**
* 是否现任:0-否,1-是
*/
isCurrent?: number;
/**
* 学生职务任职状态:1-在任,2-到期,3-辞职,4-免职,5-调任,6-休学
*/
cadreStatus?: string;
/**
* 任命原因
*/
appointmentReason?: string;
/**
* 学生职务任命方式:appointment-任命,election-选举,recommendation-推荐
*/
appointmentMethod?: string;
/**
* 离任日期
*/
dismissalDate?: string;
/**
* 离任原因
*/
dismissalReason?: string;
/**
* 日期范围参数
*/
params?: any;
}