@RestController(value="engine-web-role")
@RequestMapping(value="/engine/web/role")
@ConditionalOnExpression(value="${sohelp-boot.engine.enabled:true} && ${sohelp-boot.engine.service.enabled:true}")
public class RoleController
extends BaseController
request, response| 构造器和说明 |
|---|
RoleController() |
| 限定符和类型 | 方法和说明 |
|---|---|
ApiResult<List<Map<String,Object>>> |
list()
获取角色列表接口
该接口用于获取当前租户下的所有角色列表,返回结果为ApiResult包装的List类型数据
|
error, error, fail, fail, fail, getLoginID, getLoginName, getLoginOrgID, getLoginOrgName, getLoginUser, getNickname, getTenantId, getUserName, getUserNo, i18n, i18n, isAdministrator, isDeveloper, limit, offset, ok, ok, response, success, success, success, success, validateToken@GetMapping(value="/list") @Permission(value="") public ApiResult<List<Map<String,Object>>> list() throws SQLException, TokenAuthenticationException
SQLException - 如果数据库查询出现异常,则抛出SQLExceptionTokenAuthenticationException - 如果令牌认证失败,则抛出TokenAuthenticationExceptionCopyright © 2025. All rights reserved.