Update GaeaDictController.java

peiyanni 3 years ago
parent d1b79e8aff
commit 18b0f8460f

@ -96,4 +96,18 @@ public class GaeaDictController extends GaeaBaseController<GaeaDictParam, GaeaDi
Collection<KeyValue> keyValues = gaeaDictService.selectTypeCode(project,language); Collection<KeyValue> keyValues = gaeaDictService.selectTypeCode(project,language);
return responseSuccessWithData(keyValues); return responseSuccessWithData(keyValues);
} }
/**
*
* @return
*/
@GetMapping("/all")
public ResponseBean all(){
Locale locale = LocaleContextHolder.getLocale();
//语言
String language = locale.getLanguage();
Map<String, List<KeyValue>> all = gaeaDictService.all(language);
return responseSuccessWithData(all);
}
} }

Loading…
Cancel
Save