提交代码
This commit is contained in:
1 parent
4075b903cf
commit
7a4881592a
6 files changed
+398
-191
No files matched your search
@@ -219,30 +219,30 @@ export const classTeacherStayawaySelectedBeds = (bedIds: number[], classId?: str
|
||||
/**
|
||||
* 班主任床位互换
|
||||
* 将两个有学生的床位进行互换
|
||||
* @param sourceBedId 源床位ID
|
||||
* @param targetBedId 目标床位ID
|
||||
* @param sourceStudentId 源学生ID
|
||||
* @param targetStudentId 目标学生ID
|
||||
* @param classId 班级ID,可为空
|
||||
*/
|
||||
export const classTeacherExchangeBeds = (sourceBedId: number, targetBedId: number, classId?: string | number) => {
|
||||
export const classTeacherExchangeBeds = (sourceStudentId: string | number, targetStudentId: string | number, classId?: string | number) => {
|
||||
return request({
|
||||
url: '/dormBedStudent/dormBedStudent/classTeacherExchangeBeds',
|
||||
method: 'post',
|
||||
params: { sourceBedId, targetBedId, classId }
|
||||
params: { sourceStudentId, targetStudentId, classId }
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 班主任床位移动
|
||||
* 将学生从当前床位移动到指定的空闲床位
|
||||
* @param sourceBedId 源床位ID
|
||||
* @param sourceStudentId 源学生ID
|
||||
* @param targetBedId 目标床位ID
|
||||
* @param classId 班级ID,可为空
|
||||
*/
|
||||
export const classTeacherMoveBed = (sourceBedId: number, targetBedId: number, classId?: string | number) => {
|
||||
export const classTeacherMoveBed = (sourceStudentId: string | number, targetBedId?: string | number, classId?: string | number) => {
|
||||
return request({
|
||||
url: '/dormBedStudent/dormBedStudent/classTeacherMoveBed',
|
||||
method: 'post',
|
||||
params: { sourceBedId, targetBedId, classId }
|
||||
params: { sourceStudentId, targetBedId, classId }
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user