类 DictController
java.lang.Object
net.sohelp.boot.admin.core.base.BaseController
net.sohelp.boot.engine.web.controller.DictController
@RestController("engine-web-dict")
@RequestMapping("/engine/web/dict")
@ConditionalOnExpression("${sohelp-boot.engine.enabled:true} && ${sohelp-boot.engine.service.enabled:true}")
public class DictController
extends BaseController
字典数据
- 从以下版本开始:
- 2024/8/5 12:14
- 作者:
- AaronFung
-
字段概要
从类继承的字段 net.sohelp.boot.admin.core.base.BaseController
request, response -
构造器概要
构造器 -
方法概要
从类继承的方法 net.sohelp.boot.admin.core.base.BaseController
error, error, fail, fail, fail, getLoginID, getLoginName, getLoginOrgID, getLoginOrgName, getLoginUser, getNickname, getTenantId, getUserName, getUserNo, i18n, i18n, isAdministrator, isDeveloper, limit, offset, ok, ok, response, response, responseStream, success, success, success, success, validateToken
-
构造器详细资料
-
DictController
public DictController()
-
-
方法详细资料
-
list
@GetMapping("/list") @Permission("") public ApiResult<Map<String,List<Map<String, list() throws TokenAuthenticationException, SQLExceptionObject>>>> 获取用户下拉菜单数据 该接口用于获取当前租户下的所有字典数据,并过滤出与当前租户ID匹配的数据,最后返回给前端用于展示下拉菜单。- 返回:
- 返回包含字典数据的ApiResult对象,其中数据部分为Map类型,键为字典类型,值为该类型下所有与当前租户ID匹配的字典项列表
- 抛出:
TokenAuthenticationException- 如果令牌认证失败,则抛出此异常SQLException- 如果数据库查询出现异常,则抛出此异常
-