refactor: 优化查询参数字典 API 地址
This commit is contained in:
parent
67fa4edc4d
commit
79a3de8971
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user