From 06e6f7af0c1df647f5106df4bdf51858b4e86bdc Mon Sep 17 00:00:00 2001
From: zendwang <wangzhenxian@idadt.com>
Date: 星期二, 29 十一月 2022 18:48:25 +0800
Subject: [PATCH] update 短信校验模板参数传参错误
---
ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/SwaggerProperties.java | 116 ++++++++++++++++++++++++++++++++++++++-------------------
1 files changed, 77 insertions(+), 39 deletions(-)
diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/SwaggerProperties.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/SwaggerProperties.java
index f99c3da..736d70a 100644
--- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/SwaggerProperties.java
+++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/SwaggerProperties.java
@@ -1,12 +1,20 @@
package com.ruoyi.framework.config.properties;
+import io.swagger.v3.oas.models.Components;
+import io.swagger.v3.oas.models.ExternalDocumentation;
+import io.swagger.v3.oas.models.Paths;
+import io.swagger.v3.oas.models.info.Contact;
+import io.swagger.v3.oas.models.info.License;
+import io.swagger.v3.oas.models.tags.Tag;
import lombok.Data;
-import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.stereotype.Component;
+import java.util.List;
+
/**
- * 楠岃瘉鐮� 閰嶇疆灞炴��
+ * swagger 閰嶇疆灞炴��
*
* @author Lion Li
*/
@@ -16,48 +24,78 @@
public class SwaggerProperties {
/**
- * 楠岃瘉鐮佺被鍨�
+ * 鏄惁寮�鍚� openApi 鏂囨。
*/
- private Boolean enabled;
- /**
- * 璁剧疆璇锋眰鐨勭粺涓�鍓嶇紑
- */
- private String pathMapping;
- /**
- * 楠岃瘉鐮佺被鍒�
- */
- private String title;
- /**
- * 鏁板瓧楠岃瘉鐮佷綅鏁�
- */
- private String description;
- /**
- * 瀛楃楠岃瘉鐮侀暱搴�
- */
- private String version;
+ private Boolean enabled = true;
- /**
- * 鑱旂郴鏂瑰紡
- */
- private Contact contact;
+ /**
+ * 鏂囨。鍩烘湰淇℃伅
+ */
+ @NestedConfigurationProperty
+ private InfoProperties info = new InfoProperties();
+ /**
+ * 鎵╁睍鏂囨。鍦板潃
+ */
+ @NestedConfigurationProperty
+ private ExternalDocumentation externalDocs;
+
+ /**
+ * 鏍囩
+ */
+ private List<Tag> tags = null;
+
+ /**
+ * 璺緞
+ */
+ @NestedConfigurationProperty
+ private Paths paths = null;
+
+ /**
+ * 缁勪欢
+ */
+ @NestedConfigurationProperty
+ private Components components = null;
+
+ /**
+ * <p>
+ * 鏂囨。鐨勫熀纭�灞炴�т俊鎭�
+ * </p>
+ *
+ * @see io.swagger.v3.oas.models.info.Info
+ *
+ * 涓轰簡 springboot 鑷姩鐢熶骇閰嶇疆鎻愮ず淇℃伅锛屾墍浠ヨ繖閲屽鍒朵竴涓被鍑烘潵
+ */
@Data
- @NoArgsConstructor
- public static class Contact{
+ public static class InfoProperties {
- /**
- * 鑱旂郴浜�
- **/
- private String name;
- /**
- * 鑱旂郴浜簎rl
- **/
- private String url;
- /**
- * 鑱旂郴浜篹mail
- **/
- private String email;
+ /**
+ * 鏍囬
+ */
+ private String title = null;
- }
+ /**
+ * 鎻忚堪
+ */
+ private String description = null;
+
+ /**
+ * 鑱旂郴浜轰俊鎭�
+ */
+ @NestedConfigurationProperty
+ private Contact contact = null;
+
+ /**
+ * 璁稿彲璇�
+ */
+ @NestedConfigurationProperty
+ private License license = null;
+
+ /**
+ * 鐗堟湰
+ */
+ private String version = null;
+
+ }
}
--
Gitblit v1.9.3