dos 3 kuukautta sitten
vanhempi
sitoutus
466a6d735b

+ 36 - 0
ruoyi-common/src/main/java/com/ruoyi/common/config/WxAppConfig.java

@@ -0,0 +1,36 @@
+package com.ruoyi.common.config;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.stereotype.Component;
+
+/**
+ * 读取项目相关配置
+ *
+ * @author ruoyi
+ */
+@Component
+@ConfigurationProperties(prefix = "wx-app")
+public class WxAppConfig {
+
+    /** AppId */
+    private String appId;
+
+    /** AppSecret */
+    private String appSecret;
+
+    public String getAppId() {
+        return appId;
+    }
+
+    public void setAppId(String appId) {
+        this.appId = appId;
+    }
+
+    public String getAppSecret() {
+        return appSecret;
+    }
+
+    public void setAppSecret(String appSecret) {
+        this.appSecret = appSecret;
+    }
+}