| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- package com.template.api;
- import com.template.model.pojo.SmartSchool;
- import com.template.model.request.UpdateSmartSchoolRequest;
- import com.template.model.result.CommonResult;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import org.springframework.validation.BindingResult;
- import org.springframework.validation.annotation.Validated;
- import org.springframework.web.bind.annotation.*;
- /**
- * @Author: binguo
- * @Date: 2023/3/30 星期四 17:28
- * @Description: com.video.api
- * @Version: 1.0
- */
- @RequestMapping("/api/smartSchool")
- @Api(tags = {"SmartSchoolControllerAPI"}, value = "学校基本信息")
- public interface SmartSchoolControllerAPI {
- @PostMapping(value = "/insertSmartSchool")
- @ApiOperation(value = "添加学校基本信息", notes = "添加学校基本信息数据", httpMethod = "POST")
- CommonResult insertSmartSchool(@Validated @RequestBody SmartSchool smartApply, BindingResult bindingResult);
- @PostMapping(value = "/updateSmartSchoolById")
- @ApiOperation(value = "编辑学校基本信息数据", notes = "编辑学校基本信息数据", httpMethod = "POST")
- CommonResult updateSmartSchoolById(@Validated @RequestBody UpdateSmartSchoolRequest ussr, BindingResult bindingResult);
- @GetMapping(value = "/querySmartSchool")
- @ApiOperation(value = "获取学校基本信息数据", notes = "获取学校基本信息数据", httpMethod = "GET")
- CommonResult querySmartSchool();
- @GetMapping(value = "/queryPageSmartSchool")
- @ApiOperation(value = "学校基本信息分页数据", notes = "学校基本信息分页数据", httpMethod = "GET")
- CommonResult queryPageSmartSchools(@RequestParam int currentPage, @RequestParam int pageCount, String name);
- @GetMapping(value = "/deleteSmartSchoolById")
- @ApiOperation(value = "根据ID删除指定学校基本信息", notes = "根据ID删除指定学校基本信息", httpMethod = "GET")
- CommonResult deleteSmartSchoolById(@RequestParam int id);
- }
|