mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 10:57:13 +08:00 
			
		
		
		
	refactor: 优化查询参数字典 API 地址
This commit is contained in:
		| @@ -110,10 +110,10 @@ public class CommonController { | ||||
|     } | ||||
|  | ||||
|     @SaIgnore | ||||
|     @Operation(summary = "查询参数", description = "查询参数") | ||||
|     @GetMapping("/option") | ||||
|     @Operation(summary = "查询参数字典", description = "查询参数字典") | ||||
|     @GetMapping("/dict/option") | ||||
|     @Cached(key = "#query.code", name = CacheConstants.OPTION_KEY_PREFIX) | ||||
|     public R<List<LabelValueResp<String>>> listOption(@Validated OptionQuery query) { | ||||
|     public R<List<LabelValueResp<String>>> listOptionDict(@Validated OptionQuery query) { | ||||
|         return R.ok(optionService.list(query) | ||||
|             .stream() | ||||
|             .map(option -> new LabelValueResp<>(option.getCode(), StrUtil.nullToDefault(option.getValue(), option | ||||
|   | ||||
		Reference in New Issue
	
	Block a user