新增管理:补齐课程教室破坏性操作生命周期与安全引用拦截

This commit is contained in:
wangzhibiao committed 2026-09-20 15:09:27 +08:00
1 parent 32f22f950f
commit 88d6c17ca6
8 files changed
+99 -6

No files matched your search

@@ -8,6 +8,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -79,4 +80,15 @@ public class TrainClassroomInfoController extends BaseController
trainClassroomInfo.setUpdateBy(SecurityUtils.getUsername());
return toAjax(trainClassroomInfoService.updateTrainClassroomInfo(trainClassroomInfo));
}
/**
* 删除教室信息
*/
@PreAuthorize("@ss.hasPermi('train:classroom:remove')")
@Log(title = "教室信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{classRoomIds}")
public AjaxResult remove(@PathVariable String[] classRoomIds)
{
return toAjax(trainClassroomInfoService.deleteTrainClassroomInfoByClassRoomIds(classRoomIds));
}
}
@@ -6,6 +6,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -103,4 +104,15 @@ public class TrainCourseController extends BaseController
}
return toAjax(trainCourseService.updateTrainCourse(trainCourse));
}
/**
* 删除课程信息
*/
@PreAuthorize("@ss.hasPermi('train:course:remove')")
@Log(title = "课程信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{cIds}")
public AjaxResult remove(@PathVariable String[] cIds)
{
return toAjax(trainCourseService.deleteTrainCourseByCIds(cIds));
}
}