SmartDepartmentControllerAPI.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package com.template.api;
  2. import com.template.model.pojo.SmartDepartment;
  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/smartDepartment")
  16. @Api(tags = {"SmartDepartmentControllerAPI"}, value = "部门")
  17. public interface SmartDepartmentControllerAPI {
  18. @PostMapping(value = "/insertSmartDepartment")
  19. @ApiOperation(value = "添加部门", notes = "添加部门数据", httpMethod = "POST")
  20. CommonResult insertSmartDepartment(@Validated @RequestBody SmartDepartment smartApply, BindingResult bindingResult);
  21. @PostMapping(value = "/updateSmartDepartmentById")
  22. @ApiOperation(value = "编辑部门数据", notes = "编辑部门数据", httpMethod = "POST")
  23. CommonResult updateSmartDepartmentById(@Validated @RequestBody SmartDepartment ra, BindingResult bindingResult);
  24. @GetMapping(value = "/queryPageSmartDepartment")
  25. @ApiOperation(value = "部门分页数据", notes = "部门分页数据", httpMethod = "GET")
  26. CommonResult queryPageSmartDepartments(@RequestParam int currentPage, @RequestParam int pageCount, String name);
  27. @GetMapping(value = "/deleteSmartDepartmentById")
  28. @ApiOperation(value = "根据ID删除指定部门", notes = "根据ID删除指定部门", httpMethod = "GET")
  29. CommonResult deleteSmartDepartmentById(@RequestParam int id);
  30. }