This commit is contained in:
zlwu committed 2025-08-13 19:26:43 +08:00
commit 4d7bb19fd9
6 files changed
+458 -17

No files matched your search

+10 -3
View File
@@ -1,6 +1,13 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { InternshipInfoVO, InternshipInfoQuery, ClassInfoVO, InternshipStatisticsVO } from '@/api/zsjy/types';
import {
InternshipInfoVO,
InternshipInfoQuery,
InternshipInfoAddBO,
InternshipInfoEditBO,
ClassInfoVO,
InternshipStatisticsVO
} from '@/api/zsjy/types';
import { TableDataInfo, R } from '@/api/types';
/**
@@ -65,7 +72,7 @@ export const getInternshipStatistics = (query?: InternshipInfoQuery): AxiosPromi
* 新增实习信息
* @param data 实习信息数据
*/
export const addInternshipInfo = (data: any): AxiosPromise<R<void>> => {
export const addInternshipInfo = (data: InternshipInfoAddBO): AxiosPromise<R<void>> => {
return request({
url: '/zsjy/internship',
method: 'post',
@@ -77,7 +84,7 @@ export const addInternshipInfo = (data: any): AxiosPromise<R<void>> => {
* 修改实习信息
* @param data 实习信息数据
*/
export const updateInternshipInfo = (data: any): AxiosPromise<R<void>> => {
export const updateInternshipInfo = (data: InternshipInfoEditBO): AxiosPromise<R<void>> => {
return request({
url: '/zsjy/internship',
method: 'put',
+205
View File
@@ -862,6 +862,211 @@ export interface InternshipInfoVO {
updateBy?: number;
}
/**
* 实习信息新增 BO
*/
export interface InternshipInfoAddBO {
/**
* 学生ID
*/
studentId: string | number;
/**
* 实习状态(1进行中 2已完成 3中断)
*/
internshipStatus: string;
/**
* 实习单位名称
*/
companyName: string;
/**
* 实习单位地址
*/
companyAddress: string;
/**
* 行业类型
*/
companyIndustry?: string;
/**
* 单位规模
*/
companyScale?: string;
/**
* 单位联系人
*/
companyContact: string;
/**
* 联系人电话
*/
companyPhone: string;
/**
* 岗位名称
*/
positionName: string;
/**
* 岗位职责
*/
positionDuties?: string;
/**
* 实习津贴
*/
internshipAllowance?: number;
/**
* 工作时长
*/
workHours?: string;
/**
* 住宿地址
*/
accommodationAddress?: string;
/**
* 住宿类型
*/
accommodationType?: string;
/**
* 住宿费用
*/
accommodationCost?: number;
/**
* 实习开始日期
*/
startDate: string;
/**
* 实习结束日期
*/
endDate: string;
/**
* 实际结束日期
*/
actualEndDate?: string;
/**
* 备注
*/
remark?: string;
}
/**
* 实习信息编辑 BO
*/
export interface InternshipInfoEditBO {
/**
* 实习信息ID
*/
internshipId: string | number;
/**
* 学生ID
*/
studentId: string | number;
/**
* 实习状态(1进行中 2已完成 3中断)
*/
internshipStatus: string;
/**
* 实习单位名称
*/
companyName: string;
/**
* 实习单位地址
*/
companyAddress: string;
/**
* 行业类型
*/
companyIndustry?: string;
/**
* 单位规模
*/
companyScale?: string;
/**
* 单位联系人
*/
companyContact: string;
/**
* 联系人电话
*/
companyPhone: string;
/**
* 岗位名称
*/
positionName: string;
/**
* 岗位职责
*/
positionDuties?: string;
/**
* 实习津贴
*/
internshipAllowance?: number;
/**
* 工作时长
*/
workHours?: string;
/**
* 住宿地址
*/
accommodationAddress?: string;
/**
* 住宿类型
*/
accommodationType?: string;
/**
* 住宿费用
*/
accommodationCost?: number;
/**
* 实习开始日期
*/
startDate: string;
/**
* 实习结束日期
*/
endDate: string;
/**
* 实际结束日期
*/
actualEndDate?: string;
/**
* 备注
*/
remark?: string;
}
/**
* 实习信息查询 BO
*/