noteList = new ArrayList<>(new OperationDescriptionCustomizer().getPermission(handlerMethod));
-
- // 如果注解数据列表为空,直接返回原 operation
- if (noteList.isEmpty()) {
- return operation;
- }
- // 拼接注解数据为字符串
- String noteStr = StrUtil.join("
", noteList);
- // 获取原描述
- String originalDescription = operation.getDescription();
- // 根据原描述是否为空,更新描述
- String newDescription = StrUtil.isNotEmpty(originalDescription)
- ? originalDescription + "
" + noteStr
- : noteStr;
-
- // 设置新描述
- operation.setDescription(newDescription);
- return operation;
- }
-}
diff --git a/continew-common/src/main/java/top/continew/admin/common/config/doc/GlobalSpringDocResponseOperationCustomizer.java b/continew-common/src/main/java/top/continew/admin/common/config/doc/GlobalSpringDocResponseOperationCustomizer.java
new file mode 100644
index 00000000..f7828341
--- /dev/null
+++ b/continew-common/src/main/java/top/continew/admin/common/config/doc/GlobalSpringDocResponseOperationCustomizer.java
@@ -0,0 +1,206 @@
+/*
+ * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package top.continew.admin.common.config.doc;
+
+import cn.hutool.core.util.ClassUtil;
+import com.fasterxml.jackson.annotation.JsonView;
+import io.swagger.v3.oas.models.Components;
+import io.swagger.v3.oas.models.media.Content;
+import io.swagger.v3.oas.models.media.Schema;
+import org.apache.commons.lang3.ArrayUtils;
+import org.apache.commons.lang3.reflect.TypeUtils;
+import org.springdoc.core.properties.SpringDocConfigProperties;
+import org.springdoc.core.service.GenericResponseService;
+import org.springdoc.core.service.OperationService;
+import org.springdoc.core.utils.PropertyResolverUtils;
+import org.springdoc.core.utils.SpringDocAnnotationsUtils;
+import org.springframework.core.ResolvableType;
+import org.springframework.stereotype.Component;
+import top.continew.starter.web.autoconfigure.response.GlobalResponseProperties;
+
+import java.lang.annotation.Annotation;
+import java.lang.reflect.ParameterizedType;
+import java.lang.reflect.Type;
+import java.util.Arrays;
+
+import static org.springdoc.core.converters.ConverterUtils.isResponseTypeWrapper;
+import static org.springdoc.core.utils.SpringDocAnnotationsUtils.extractSchema;
+
+/**
+ * 全局响应操作自定义器
+ *
+ * 自定义 OpenAPI 文档中的响应结构,将原始返回类型包装为统一的响应格式
+ *
+ *
+ * @author echo
+ * @since 2025/07/08 09:34
+ */
+@Component
+public class GlobalSpringDocResponseOperationCustomizer extends GenericResponseService {
+
+ private final GlobalResponseProperties globalResponseProperties;
+ private final Class