From 18b0f8460f814bf3eda66e471b8f0e523bc62408 Mon Sep 17 00:00:00 2001 From: peiyanni Date: Sat, 17 Jul 2021 22:55:20 +0800 Subject: [PATCH] Update GaeaDictController.java --- .../dict/controller/GaeaDictController.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/GaeaDictController.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/GaeaDictController.java index fdf65ce6..d83a9609 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/GaeaDictController.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/GaeaDictController.java @@ -96,4 +96,18 @@ public class GaeaDictController extends GaeaBaseController keyValues = gaeaDictService.selectTypeCode(project,language); return responseSuccessWithData(keyValues); } + + /** + * 获取所有字典 + * @return + */ + @GetMapping("/all") + public ResponseBean all(){ + Locale locale = LocaleContextHolder.getLocale(); + //语言 + String language = locale.getLanguage(); + + Map> all = gaeaDictService.all(language); + return responseSuccessWithData(all); + } }