From 63a6fdf58dba5a0e223cb01240b1e8149eb428e2 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期三, 04 二月 2026 18:05:35 +0800
Subject: [PATCH] yys  增加日志打印

---
 src/main/java/com/ruoyi/api/dto/ApiProperties.java |   65 ++++++++++++++++++++++++++++++++
 1 files changed, 65 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ruoyi/api/dto/ApiProperties.java b/src/main/java/com/ruoyi/api/dto/ApiProperties.java
new file mode 100644
index 0000000..6301729
--- /dev/null
+++ b/src/main/java/com/ruoyi/api/dto/ApiProperties.java
@@ -0,0 +1,65 @@
+package com.ruoyi.api.dto;
+
+import lombok.Data;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.stereotype.Component;
+
+/**
+ * 姒嗘灄甯傚伐淇″眬鏁版嵁鎺ㄩ�侀厤缃被
+ * 鏄犲皠 yml 涓� api 鍓嶇紑鐨勬墍鏈夐厤缃�
+ */
+@Data // Lombok 娉ㄨВ锛岃嚜鍔ㄧ敓鎴� getter/setter/toString 绛夋柟娉曪紙鏃犻渶鎵嬪姩鍐欙級
+@Component // 娉ㄥ唽涓� Spring Bean锛岃 Spring 绠$悊
+@ConfigurationProperties(prefix = "api") // 缁戝畾鍓嶇紑涓� api 鐨勯厤缃�
+public class ApiProperties {
+
+    /**
+     * 鎺ㄩ�乮p鍦板潃
+     */
+    private String ip;
+
+    /**
+     * 浼佷笟搴旂敤id
+     */
+    private String appid;
+
+    /**
+     * 浼佷笟搴旂敤绉橀挜
+     */
+    private String secret;
+
+    /**
+     * 浼佷笟鍚嶇О
+     */
+    private String entName;
+
+    /**
+     * 缁熶竴绀句細淇$敤浠g爜
+     */
+    private String socialCreditCode;
+
+    /**
+     * 鏃ュ潎鐢ㄧ數閲�
+     */
+    private Integer dayPowerConsumption;
+
+    /**
+     * 鍗曚綅浜у�煎熀鏁帮紙涓囧厓锛�
+     */
+    private Integer outputValuesBase;
+
+    /**
+     * 鏈堢數璐�
+     */
+    private Integer electricityCost;
+
+    /**
+     * 鐧诲綍鎺ㄩ�佸紑鍏�
+     */
+    private Boolean loginPush;
+
+    /**
+     * 鐢垫暟鎹帹閫佸紑鍏�
+     */
+    private Boolean push;
+}
\ No newline at end of file

--
Gitblit v1.9.3