SmartSchoolControllerAPI.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package com.template.api;
  2. import com.template.model.pojo.SmartSchool;
  3. import com.template.model.request.UpdateSmartSchoolRequest;
  4. import com.template.model.result.CommonResult;
  5. import io.swagger.annotations.Api;
  6. import io.swagger.annotations.ApiOperation;
  7. import org.springframework.validation.BindingResult;
  8. import org.springframework.validation.annotation.Validated;
  9. import org.springframework.web.bind.annotation.*;
  10. /**
  11. * @Author: binguo
  12. * @Date: 2023/3/30 星期四 17:28
  13. * @Description: com.video.api
  14. * @Version: 1.0
  15. */
  16. @RequestMapping("/api/smartSchool")
  17. @Api(tags = {"SmartSchoolControllerAPI"}, value = "学校基本信息")
  18. public interface SmartSchoolControllerAPI {
  19. @PostMapping(value = "/insertSmartSchool")
  20. @ApiOperation(value = "添加学校基本信息", notes = "添加学校基本信息数据", httpMethod = "POST")
  21. CommonResult insertSmartSchool(@Validated @RequestBody SmartSchool smartApply, BindingResult bindingResult);
  22. @PostMapping(value = "/updateSmartSchoolById")
  23. @ApiOperation(value = "编辑学校基本信息数据", notes = "编辑学校基本信息数据", httpMethod = "POST")
  24. CommonResult updateSmartSchoolById(@Validated @RequestBody UpdateSmartSchoolRequest ussr, BindingResult bindingResult);
  25. @GetMapping(value = "/querySmartSchool")
  26. @ApiOperation(value = "获取学校基本信息数据", notes = "获取学校基本信息数据", httpMethod = "GET")
  27. CommonResult querySmartSchool();
  28. @GetMapping(value = "/queryPageSmartSchool")
  29. @ApiOperation(value = "学校基本信息分页数据", notes = "学校基本信息分页数据", httpMethod = "GET")
  30. CommonResult queryPageSmartSchools(@RequestParam int currentPage, @RequestParam int pageCount, String name);
  31. @GetMapping(value = "/deleteSmartSchoolById")
  32. @ApiOperation(value = "根据ID删除指定学校基本信息", notes = "根据ID删除指定学校基本信息", httpMethod = "GET")
  33. CommonResult deleteSmartSchoolById(@RequestParam int id);
  34. }