TmRoleController.java 745 B

1234567891011121314151617181920212223242526272829303132
  1. package com.fdkankan.fusion.controller;
  2. import com.fdkankan.fusion.common.ResultData;
  3. import com.fdkankan.fusion.service.ITmRoleService;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.web.bind.annotation.GetMapping;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.RestController;
  8. /**
  9. * <p>
  10. * 角色表 前端控制器
  11. * </p>
  12. *
  13. * @author
  14. * @since 2023-07-28
  15. */
  16. @RestController
  17. @RequestMapping("/web/role")
  18. public class TmRoleController {
  19. @Autowired
  20. private ITmRoleService roleService;
  21. @GetMapping("/getAllRoleList")
  22. public ResultData getAllRoleList(){
  23. return ResultData.ok(roleService.list());
  24. }
  25. }