1234567891011121314151617181920212223242526272829303132 |
- 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;
- /**
- * <p>
- * 角色表 前端控制器
- * </p>
- *
- * @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());
- }
- }
|