mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-12-15 07:00:54 +08:00
revert: 回退全局响应结果处理器
1.影响 API 文档生成 2.其他已知及未知影响
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user