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