类 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
  • 构造器详细资料

    • DictController

      public DictController()
  • 方法详细资料

    • list

      @GetMapping("/list") @Permission("") public ApiResult<Map<String,List<Map<String,Object>>>> list() throws TokenAuthenticationException, SQLException
      获取用户下拉菜单数据 该接口用于获取当前租户下的所有字典数据,并过滤出与当前租户ID匹配的数据,最后返回给前端用于展示下拉菜单。
      返回:
      返回包含字典数据的ApiResult对象,其中数据部分为Map类型,键为字典类型,值为该类型下所有与当前租户ID匹配的字典项列表
      抛出:
      TokenAuthenticationException - 如果令牌认证失败,则抛出此异常
      SQLException - 如果数据库查询出现异常,则抛出此异常