From 80b6cbfc9c861469146318d0b3dd5f8b8b525b8a Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期五, 01 十一月 2024 15:11:19 +0800
Subject: [PATCH] Revert "集成获取mdm分发通用数据格式接口集成"

---
 Source/BladeX-Tool/blade-starter-swagger/src/main/java/org/springblade/core/swagger/SwaggerProperties.java |  177 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 177 insertions(+), 0 deletions(-)

diff --git a/Source/BladeX-Tool/blade-starter-swagger/src/main/java/org/springblade/core/swagger/SwaggerProperties.java b/Source/BladeX-Tool/blade-starter-swagger/src/main/java/org/springblade/core/swagger/SwaggerProperties.java
new file mode 100644
index 0000000..2d44f38
--- /dev/null
+++ b/Source/BladeX-Tool/blade-starter-swagger/src/main/java/org/springblade/core/swagger/SwaggerProperties.java
@@ -0,0 +1,177 @@
+/*
+ *
+ *      Copyright (c) 2018-2025, lengleng All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: lengleng (wangiegie@gmail.com)
+ *
+ */
+package org.springblade.core.swagger;
+
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.springblade.core.launch.constant.AppConstant;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+/**
+ * SwaggerProperties
+ *
+ * @author Chill
+ */
+@Data
+@ConfigurationProperties("swagger")
+public class SwaggerProperties {
+	/**
+	 * swagger浼氳В鏋愮殑鍖呰矾寰�
+	 **/
+	private List<String> basePackages = new ArrayList<>(Collections.singletonList(AppConstant.BASE_PACKAGES));
+	/**
+	 * swagger浼氳В鏋愮殑url瑙勫垯
+	 **/
+	private List<String> basePath = new ArrayList<>();
+	/**
+	 * 鍦╞asePath鍩虹涓婇渶瑕佹帓闄ょ殑url瑙勫垯
+	 **/
+	private List<String> excludePath = new ArrayList<>();
+	/**
+	 * 鏍囬
+	 **/
+	private String title = "BladeX 鎺ュ彛鏂囨。绯荤粺";
+	/**
+	 * 鎻忚堪
+	 **/
+	private String description = "BladeX 鎺ュ彛鏂囨。绯荤粺";
+	/**
+	 * 鐗堟湰
+	 **/
+	private String version = AppConstant.APPLICATION_VERSION;
+	/**
+	 * 璁稿彲璇�
+	 **/
+	private String license = "Powered By BladeX";
+	/**
+	 * 璁稿彲璇乁RL
+	 **/
+	private String licenseUrl = "https://bladex.vip";
+	/**
+	 * 鏈嶅姟鏉℃URL
+	 **/
+	private String termsOfServiceUrl = "https://bladex.vip";
+
+	/**
+	 * host淇℃伅
+	 **/
+	private String host = "";
+	/**
+	 * 鑱旂郴浜轰俊鎭�
+	 */
+	private Contact contact = new Contact();
+	/**
+	 * 鍏ㄥ眬缁熶竴閴存潈閰嶇疆
+	 **/
+	private Authorization authorization = new Authorization();
+
+	@Data
+	@NoArgsConstructor
+	public static class Contact {
+
+		/**
+		 * 鑱旂郴浜�
+		 **/
+		private String name = "chillzhuang";
+		/**
+		 * 鑱旂郴浜簎rl
+		 **/
+		private String url = "https://gitee.com/smallc";
+		/**
+		 * 鑱旂郴浜篹mail
+		 **/
+		private String email = "smallchill@163.com";
+
+	}
+
+	@Data
+	@NoArgsConstructor
+	public static class Authorization {
+
+		/**
+		 * 閴存潈绛栫暐ID锛岄渶瑕佸拰SecurityReferences ID淇濇寔涓�鑷�
+		 */
+		private String name = "";
+
+		/**
+		 * 闇�瑕佸紑鍚壌鏉僓RL鐨勬鍒�
+		 */
+		private String authRegex = "^.*$";
+
+		/**
+		 * 閴存潈浣滅敤鍩熷垪琛�
+		 */
+		private List<AuthorizationScope> authorizationScopeList = new ArrayList<>();
+
+		/**
+		 * 閴存潈璇锋眰澶村弬鏁板垪琛�
+		 */
+		private List<AuthorizationApiKey> authorizationApiKeyList = new ArrayList<>();
+
+		/**
+		 * 鎺ュ彛鍖归厤鍦板潃
+		 */
+		private List<String> tokenUrlList = new ArrayList<>();
+	}
+
+	@Data
+	@NoArgsConstructor
+	public static class AuthorizationScope {
+
+		/**
+		 * 閴存潈绛栫暐鍚�, 闇�瑕佸拰ApiKey鐨刵ame淇濇寔涓�鑷�
+		 */
+		private String name = "";
+		/**
+		 * 浣滅敤鍩熷悕绉�
+		 */
+		private String scope = "";
+
+		/**
+		 * 浣滅敤鍩熸弿杩�
+		 */
+		private String description = "";
+
+	}
+
+	@Data
+	@NoArgsConstructor
+	public static class AuthorizationApiKey {
+
+		/**
+		 * 鍙傛暟鍚�
+		 */
+		private String name = "";
+
+		/**
+		 * 鍙傛暟鍊�
+		 */
+		private String keyName = "";
+
+		/**
+		 * 鍙傛暟浣滅敤鍩�
+		 */
+		private String passAs = "";
+
+	}
+}

--
Gitblit v1.9.3