package com.fdkankan.fusion.controller; import com.fdkankan.fusion.common.ResultData; import com.fdkankan.fusion.service.ITmRoleService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** *
* 角色表 前端控制器 *
* * @author * @since 2023-07-28 */ @RestController @RequestMapping("/web/role") public class TmRoleController { @Autowired private ITmRoleService roleService; @GetMapping("/getAllRoleList") public ResultData getAllRoleList(){ return ResultData.ok(roleService.list()); } }