SmartIdentityControllerAPI.java 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package com.template.api;
  2. import com.template.model.pojo.SmartIdentity;
  3. import com.template.model.request.insertIdentityRequest;
  4. import com.template.model.request.updateIdentityRequest;
  5. import com.template.model.result.CommonResult;
  6. import io.swagger.annotations.Api;
  7. import io.swagger.annotations.ApiOperation;
  8. import org.springframework.validation.BindingResult;
  9. import org.springframework.validation.annotation.Validated;
  10. import org.springframework.web.bind.annotation.*;
  11. /**
  12. * @Author: binguo
  13. * @Date: 2023/3/30 星期四 17:28
  14. * @Description: com.video.api
  15. * @Version: 1.0
  16. */
  17. @RequestMapping("/api/smartIdentity")
  18. @Api(tags = {"SmartIdentityControllerAPI"}, value = "身份")
  19. public interface SmartIdentityControllerAPI {
  20. @PostMapping(value = "/insertSmartIdentity")
  21. @ApiOperation(value = "添加身份", notes = "添加身份数据", httpMethod = "POST")
  22. CommonResult insertSmartIdentity(@Validated @RequestBody insertIdentityRequest smartIdentity, BindingResult bindingResult);
  23. @PostMapping(value = "/updateSmartIdentityById")
  24. @ApiOperation(value = "编辑身份数据", notes = "编辑身份数据", httpMethod = "POST")
  25. CommonResult updateSmartIdentityById(@Validated @RequestBody updateIdentityRequest ra, BindingResult bindingResult);
  26. @GetMapping(value = "/queryPageSmartIdentity")
  27. @ApiOperation(value = "身份分页数据", notes = "身份分页数据", httpMethod = "GET")
  28. CommonResult queryPageSmartIdentitys(@RequestParam int currentPage, @RequestParam int pageCount, String name);
  29. @GetMapping(value = "/deleteSmartIdentityById")
  30. @ApiOperation(value = "根据ID删除指定身份", notes = "根据ID删除指定身份", httpMethod = "GET")
  31. CommonResult deleteSmartIdentityById(@RequestParam int id);
  32. @GetMapping(value = "/querySmartIdentitys")
  33. @ApiOperation(value = "获取身份集合", notes = "获取身份集合", httpMethod = "GET")
  34. CommonResult querySmartIdentitys();
  35. @GetMapping(value = "/queryIdentityApplyById")
  36. @ApiOperation(value = "根据身份ID查询应用权限", notes = "根据身份ID查询应用权限", httpMethod = "GET")
  37. CommonResult queryIdentityApplyById(@RequestParam int id);
  38. }