提交
This commit is contained in:
1 parent
b8da4c17bf
commit
d9ea1caae8
15 files changed
+1233
-68
No files matched your search
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { DormBedStudentVO, DormBedStudentForm, DormBedStudentQuery } from '@/api/xg/xgss/dormBedStudent/dormBedStudent/types';
|
||||
|
||||
/**
|
||||
* 查询床位学生分配关系列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listDormBedStudent = (query?: DormBedStudentQuery): AxiosPromise<DormBedStudentVO[]> => {
|
||||
return request({
|
||||
url: '/dormBedStudent/dormBedStudent/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询床位学生分配关系详细
|
||||
* @param id
|
||||
*/
|
||||
export const getDormBedStudent = (id: string | number): AxiosPromise<DormBedStudentVO> => {
|
||||
return request({
|
||||
url: '/dormBedStudent/dormBedStudent/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增床位学生分配关系
|
||||
* @param data
|
||||
*/
|
||||
export const addDormBedStudent = (data: DormBedStudentForm) => {
|
||||
return request({
|
||||
url: '/dormBedStudent/dormBedStudent',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改床位学生分配关系
|
||||
* @param data
|
||||
*/
|
||||
export const updateDormBedStudent = (data: DormBedStudentForm) => {
|
||||
return request({
|
||||
url: '/dormBedStudent/dormBedStudent',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除床位学生分配关系
|
||||
* @param id
|
||||
*/
|
||||
export const delDormBedStudent = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/dormBedStudent/dormBedStudent/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,231 @@
|
||||
export interface DormBedStudentVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 分配学院ID
|
||||
*/
|
||||
collegeId: string | number;
|
||||
|
||||
/**
|
||||
* 分配专业ID
|
||||
*/
|
||||
majorId: string | number;
|
||||
|
||||
/**
|
||||
* 分配班级ID
|
||||
*/
|
||||
classId: string | number;
|
||||
|
||||
/**
|
||||
* 分配学生ID
|
||||
*/
|
||||
studentId: string | number;
|
||||
|
||||
/**
|
||||
* 床位ID
|
||||
*/
|
||||
bedId: string | number;
|
||||
|
||||
/**
|
||||
* 房间ID
|
||||
*/
|
||||
roomId: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍楼ID
|
||||
*/
|
||||
buildingId: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍区ID
|
||||
*/
|
||||
areaId: string | number;
|
||||
|
||||
/**
|
||||
* 校区ID
|
||||
*/
|
||||
campusId: string | number;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1已退宿)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 分配时间
|
||||
*/
|
||||
assignTime: string;
|
||||
|
||||
/**
|
||||
* 退宿时间
|
||||
*/
|
||||
checkoutTime: string;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DormBedStudentForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 分配学院ID
|
||||
*/
|
||||
collegeId?: string | number;
|
||||
|
||||
/**
|
||||
* 分配专业ID
|
||||
*/
|
||||
majorId?: string | number;
|
||||
|
||||
/**
|
||||
* 分配班级ID
|
||||
*/
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 分配学生ID
|
||||
*/
|
||||
studentId?: string | number;
|
||||
|
||||
/**
|
||||
* 床位ID
|
||||
*/
|
||||
bedId?: string | number;
|
||||
|
||||
/**
|
||||
* 房间ID
|
||||
*/
|
||||
roomId?: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍楼ID
|
||||
*/
|
||||
buildingId?: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍区ID
|
||||
*/
|
||||
areaId?: string | number;
|
||||
|
||||
/**
|
||||
* 校区ID
|
||||
*/
|
||||
campusId?: string | number;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1已退宿)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 分配时间
|
||||
*/
|
||||
assignTime?: string;
|
||||
|
||||
/**
|
||||
* 退宿时间
|
||||
*/
|
||||
checkoutTime?: string;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DormBedStudentQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 分配学院ID
|
||||
*/
|
||||
collegeId?: string | number;
|
||||
|
||||
/**
|
||||
* 分配专业ID
|
||||
*/
|
||||
majorId?: string | number;
|
||||
|
||||
/**
|
||||
* 分配班级ID
|
||||
*/
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 分配学生ID
|
||||
*/
|
||||
studentId?: string | number;
|
||||
|
||||
/**
|
||||
* 床位ID
|
||||
*/
|
||||
bedId?: string | number;
|
||||
|
||||
/**
|
||||
* 房间ID
|
||||
*/
|
||||
roomId?: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍楼ID
|
||||
*/
|
||||
buildingId?: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍区ID
|
||||
*/
|
||||
areaId?: string | number;
|
||||
|
||||
/**
|
||||
* 校区ID
|
||||
*/
|
||||
campusId?: string | number;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1已退宿)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 分配时间
|
||||
*/
|
||||
assignTime?: string;
|
||||
|
||||
/**
|
||||
* 退宿时间
|
||||
*/
|
||||
checkoutTime?: string;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user