Skip to content

Commit

Permalink
refactor: 优化查询参数字典 API 地址
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Apr 23, 2024
1 parent 67fa4ed commit 79a3de8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ public R<List<LabelValueResp<Serializable>>> listDict(@PathVariable String code)
}

@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
Expand Down

0 comments on commit 79a3de8

Please sign in to comment.