revert: 回退全局响应结果处理器

1.影响 API 文档生成
2.其他已知及未知影响
This commit is contained in:
2023-11-30 22:09:44 +08:00
parent cde515b186
commit 2146605a86
3 changed files with 1 additions and 35 deletions

View File

@@ -127,7 +127,7 @@ public class CommonController {
@Operation(summary = "查询参数", description = "查询参数")
@GetMapping("/option")
@Cacheable(cacheNames = CacheConsts.OPTION_KEY_PREFIX)
public R listOption(@Validated OptionQuery query) {
public R<List<LabelValueResp>> listOption(@Validated OptionQuery query) {
return R.ok(optionService.list(query).stream().map(option -> new LabelValueResp(option.getCode(),
StrUtil.nullToDefault(option.getValue(), option.getDefaultValue()))).collect(Collectors.toList()));
}