AuthorizeRtkController.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.fdkankan.manage.controller;
  2. import com.fdkankan.manage.common.ResultData;
  3. import com.fdkankan.manage.entity.AuthorizeRtk;
  4. import com.fdkankan.manage.service.IAuthorizeRtkService;
  5. import com.fdkankan.manage.vo.request.AuthorizeParam;
  6. import com.fdkankan.manage.vo.request.AuthorizeRtkParam;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.PostMapping;
  9. import org.springframework.web.bind.annotation.RequestBody;
  10. import org.springframework.web.bind.annotation.RequestMapping;
  11. import org.springframework.web.bind.annotation.RestController;
  12. /**
  13. * <p>
  14. * 前端控制器
  15. * </p>
  16. *
  17. * @author
  18. * @since 2025-03-24
  19. */
  20. @RestController
  21. @RequestMapping("/service/manage/authorizeRtk")
  22. public class AuthorizeRtkController {
  23. @Autowired
  24. IAuthorizeRtkService authorizeRtkService;
  25. @PostMapping("/addAuth")
  26. public ResultData addAuth(@RequestBody AuthorizeRtk authorizeRtk){
  27. authorizeRtkService.addAuth(authorizeRtk);
  28. return ResultData.ok();
  29. }
  30. @PostMapping("/authLog")
  31. public ResultData authLog(@RequestBody AuthorizeRtkParam param){
  32. return ResultData.ok(authorizeRtkService.pageList(param));
  33. }
  34. }