32 lines
717 B
Java
32 lines
717 B
Java
|
|
package com.mini.mybigscreen.biz.controller;
|
||
|
|
|
||
|
|
import com.mini.mybigscreen.Model.Result;
|
||
|
|
import com.mini.mybigscreen.biz.service.HomeRoleService;
|
||
|
|
import jakarta.annotation.Resource;
|
||
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* <p>
|
||
|
|
* 角色表 前端控制器
|
||
|
|
* </p>
|
||
|
|
*
|
||
|
|
* @author gaoxq
|
||
|
|
* @since 2026-03-05
|
||
|
|
*/
|
||
|
|
@RestController
|
||
|
|
@RequestMapping("/biz/homeRole")
|
||
|
|
public class HomeRoleController {
|
||
|
|
|
||
|
|
|
||
|
|
@Resource
|
||
|
|
private HomeRoleService roleService;
|
||
|
|
|
||
|
|
|
||
|
|
@GetMapping("list")
|
||
|
|
public Result<?> getList(){
|
||
|
|
return Result.success(roleService.list());
|
||
|
|
}
|
||
|
|
}
|