SmartDataSourceLogControllerAPI.java 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package com.template.api;
  2. import com.template.model.pojo.SmartDataSourceLog;
  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/smartDataSourceLog")
  16. @Api(tags = {"SmartDataSourceLogControllerAPI"}, value = "操作日志记录")
  17. public interface SmartDataSourceLogControllerAPI {
  18. @PostMapping(value = "/insertSmartDataSourceLog")
  19. @ApiOperation(value = "添加操作日志记录", notes = "添加操作日志记录数据", httpMethod = "POST")
  20. CommonResult insertSmartDataSourceLog(@Validated @RequestBody SmartDataSourceLog smartDataSourceLog, BindingResult bindingResult);
  21. // @PostMapping(value = "/updateSmartDataSourceLogById")
  22. // @ApiOperation(value = "编辑操作日志记录数据", notes = "编辑操作日志记录数据", httpMethod = "POST")
  23. // CommonResult updateSmartDataSourceLogById(@Validated @RequestBody SmartDataSourceLog ra, BindingResult bindingResult);
  24. @GetMapping(value = "/queryPageSmartDataSourceLog")
  25. @ApiOperation(value = "操作日志记录分页数据", notes = "操作日志记录分页数据", httpMethod = "GET")
  26. CommonResult queryPageSmartDataSourceLogs(@RequestParam int currentPage,
  27. @RequestParam int pageCount,
  28. @RequestParam(required = false) String startTime,
  29. @RequestParam(required = false) String endTime,
  30. SmartDataSourceLog smartDataSourceLog);
  31. @GetMapping(value = "/queryDistinctActionName")
  32. @ApiOperation(value = "操作日志记录操作名称数据", notes = "操作日志记录操作名称数据", httpMethod = "GET")
  33. CommonResult queryDistinctActionName();
  34. @GetMapping(value = "/queryDistinctActionPeople")
  35. @ApiOperation(value = "操作日志记录操作人数据", notes = "操作日志记录操作人数据", httpMethod = "GET")
  36. CommonResult queryDistinctActionPeople();
  37. @GetMapping(value = "/queryDistinctActionModule")
  38. @ApiOperation(value = "操作日志记录操作模块数据", notes = "操作日志记录操作模块数据", httpMethod = "GET")
  39. CommonResult queryDistinctActionModule();
  40. @GetMapping(value = "/queryDistinctActionBusiness")
  41. @ApiOperation(value = "操作日志记录操作业务数据", notes = "操作日志记录操作业务数据", httpMethod = "GET")
  42. CommonResult queryDistinctActionBusiness();
  43. // @GetMapping(value = "/deleteSmartDataSourceLogById")
  44. // @ApiOperation(value = "根据ID删除指定操作日志记录", notes = "根据ID删除指定操作日志记录", httpMethod = "GET")
  45. // CommonResult deleteSmartDataSourceLogById(@RequestParam int id);
  46. }