|
@@ -28,7 +28,7 @@ public class EasEduSubjectsController {
|
|
* @param easEduSubjects
|
|
* @param easEduSubjects
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @PostMapping(value = "/addSubject")
|
|
|
|
|
|
+ @PostMapping(value = "/add")
|
|
@Operation(summary = "添加课程" , description = "用于添加课程")
|
|
@Operation(summary = "添加课程" , description = "用于添加课程")
|
|
public JsonResult addSubject( @RequestBody EasEduSubjects easEduSubjects){
|
|
public JsonResult addSubject( @RequestBody EasEduSubjects easEduSubjects){
|
|
int addSubject = easEduSubjectsService.addSubject(easEduSubjects);
|
|
int addSubject = easEduSubjectsService.addSubject(easEduSubjects);
|
|
@@ -41,7 +41,7 @@ public class EasEduSubjectsController {
|
|
* @param easEduSubjects
|
|
* @param easEduSubjects
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @PostMapping(value = "/updateSubjects")
|
|
|
|
|
|
+ @PostMapping(value = "/update")
|
|
@Operation(summary = "修改课程" , description = "用于修改课程")
|
|
@Operation(summary = "修改课程" , description = "用于修改课程")
|
|
public JsonResult updateSubjects( @RequestBody EasEduSubjects easEduSubjects){
|
|
public JsonResult updateSubjects( @RequestBody EasEduSubjects easEduSubjects){
|
|
int update_i = easEduSubjectsService.updateSubjects(easEduSubjects);
|
|
int update_i = easEduSubjectsService.updateSubjects(easEduSubjects);
|
|
@@ -57,7 +57,7 @@ public class EasEduSubjectsController {
|
|
* @param id
|
|
* @param id
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @DeleteMapping(value = "/deleteSubjects/{id}")
|
|
|
|
|
|
+ @DeleteMapping(value = "/delete/{id}")
|
|
@Operation(summary = "删除课程",description = "用于删除课程")
|
|
@Operation(summary = "删除课程",description = "用于删除课程")
|
|
public JsonResult deleteSubjects(@PathVariable Integer id){
|
|
public JsonResult deleteSubjects(@PathVariable Integer id){
|
|
int delete_i = easEduSubjectsService.deleteSubjects(id);
|
|
int delete_i = easEduSubjectsService.deleteSubjects(id);
|
|
@@ -73,7 +73,7 @@ public class EasEduSubjectsController {
|
|
* @param id
|
|
* @param id
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @GetMapping(value = "/selectById")
|
|
|
|
|
|
+ @GetMapping(value = "/queryById")
|
|
@Operation(summary = "id查询课程" ,description = "根据id查询课程")
|
|
@Operation(summary = "id查询课程" ,description = "根据id查询课程")
|
|
public JsonResult selectById(Integer id){
|
|
public JsonResult selectById(Integer id){
|
|
EasEduSubjects easEduSubjects = easEduSubjectsService.selectById(id);
|
|
EasEduSubjects easEduSubjects = easEduSubjectsService.selectById(id);
|
|
@@ -87,7 +87,7 @@ public class EasEduSubjectsController {
|
|
* 查询所有课程及其信息
|
|
* 查询所有课程及其信息
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @GetMapping(value = "/selectAll")
|
|
|
|
|
|
+ @GetMapping(value = "/queryAll")
|
|
@Operation(summary = "查询所有课程",description = "用于查询所有课程")
|
|
@Operation(summary = "查询所有课程",description = "用于查询所有课程")
|
|
public JsonResult selectAll(){
|
|
public JsonResult selectAll(){
|
|
List<EasEduSubjects> easEduSubjects = easEduSubjectsService.selectAll();
|
|
List<EasEduSubjects> easEduSubjects = easEduSubjectsService.selectAll();
|
|
@@ -101,7 +101,7 @@ public class EasEduSubjectsController {
|
|
* @param pageSize
|
|
* @param pageSize
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @PostMapping(value = "/selectByCondition")
|
|
|
|
|
|
+ @PostMapping(value = "/query")
|
|
@Operation(summary = "根据条件进行查询课程", description = "用于根据条件查询课程")
|
|
@Operation(summary = "根据条件进行查询课程", description = "用于根据条件查询课程")
|
|
public JsonPageResult selectByCondition(@RequestBody EasEduSubjects easEduSubjects,
|
|
public JsonPageResult selectByCondition(@RequestBody EasEduSubjects easEduSubjects,
|
|
@RequestParam Integer pageNum, @RequestParam Integer pageSize) {
|
|
@RequestParam Integer pageNum, @RequestParam Integer pageSize) {
|