SmartSchoolControllerAPI.java 1.7 KB

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