mirror of https://gitee.com/stylefeng/roses
【7.6.0】【role】获取角色列表
parent
2afd2bca1e
commit
d47a77b354
|
@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统角色控制器
|
* 系统角色控制器
|
||||||
|
@ -98,4 +99,17 @@ public class SysRoleController {
|
||||||
return new SuccessResponseData<>(sysRoleService.findPage(sysRoleRequest));
|
return new SuccessResponseData<>(sysRoleService.findPage(sysRoleRequest));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取所有角色列表
|
||||||
|
* <p>
|
||||||
|
* 一般用在用户分配角色,响应所有的角色列表
|
||||||
|
*
|
||||||
|
* @author fengshuonan
|
||||||
|
* @date 2023/06/10 21:29
|
||||||
|
*/
|
||||||
|
@GetResource(name = "分页查询-角色列表", path = "/sysRole/list")
|
||||||
|
public ResponseData<List<SysRole>> list(SysRoleRequest sysRoleRequest) {
|
||||||
|
return new SuccessResponseData<>(sysRoleService.findList(sysRoleRequest));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue