From db23586fd744582cd8ee237c34ff29d9277009ee Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期一, 01 七月 2024 15:45:29 +0800 Subject: [PATCH] 用户管理添加 --- src/main/java/com/whyc/constant/YamlProperties.java | 136 +++++++++++++++++++-------------------------- 1 files changed, 57 insertions(+), 79 deletions(-) diff --git a/src/main/java/com/whyc/constant/YamlProperties.java b/src/main/java/com/whyc/constant/YamlProperties.java index 4d17866..b2c8633 100644 --- a/src/main/java/com/whyc/constant/YamlProperties.java +++ b/src/main/java/com/whyc/constant/YamlProperties.java @@ -22,41 +22,55 @@ public static Integer systemType; /**浜鸿劯璇嗗埆瀵规瘮闃堝��*/ - public static Float faceThreshold; + //public static Float faceThreshold; /**鍛婅鐭俊寮�鍏�*/ - public static String messageSwitch; + /* public static String messageSwitch; public static String messageSecretId; public static String messageSecretKey; public static String messageRegion; public static String messageSdkAppId; public static String messageSignName; - public static String messageTemplateId; - public static String appId4Win; + public static String messageTemplateId;*/ + /* public static String appId4Win; public static String sdkKey4Win; public static String appId4Linux; - public static String sdkKey4Linux; - public static String activeKey; - public static Integer faceType; + public static String sdkKey4Linux;*/ /**鍛婅宸ュ崟寮�鍏�*/ - public static String alarmTaskSwitch; + //public static String alarmTaskSwitch; /**绯荤粺杩愯妯″紡*/ public static Integer runModel; - /**鑷畾涔夊父閲�*/ - public static String fontDynamicCodeSwitch; + /**FTP淇℃伅*/ + /*public static String ftpIp; + public static Integer ftpPort; + public static String ftpUserName; + public static String ftpPassword;*/ + + /*====== 鑷畾涔変俊鎭� ======*/ + + /**璺ㄥ煙鐧藉悕鍗�*/ public static String allowedCORSDomainList; - public static String restartPasswd; - public static String publicKeyOld; - public static String privateKeyOld; + public static String publicKey; public static String privateKey; - public static String aesDefaultKey; - public static String aesIv; - public static String i18nLanguage; + @Value("${custom.rsa.publicKey}") + public void setPublicKey(String publicKey) { + YamlProperties.publicKey = publicKey; + } + + @Value("${custom.rsa.privateKey}") + public void setPrivateKey(String privateKey) { + YamlProperties.privateKey = privateKey; + } + + @Value("${custom.cors}") + public void setAllowedCORSDomainList(String allowedCORSDomainList) { + YamlProperties.allowedCORSDomainList = allowedCORSDomainList; + } @Value("${spring.profiles.active}") public void setProfileType(String profileType) { YamlProperties.profileType = profileType; @@ -66,23 +80,25 @@ public void setSystemType(Integer systemType) { YamlProperties.systemType = systemType; } - - /* @Value("${custom.face.threshold}") +/* + @Value("${custom.face.threshold}") private void setFaceThreshold(Float faceThreshold) { YamlProperties.faceThreshold = faceThreshold; - } - - @Value("${custom.message.switch}") + }*/ +/* + @Value("${custom.message.switch}") private void setMessageSwitch(String messageSwitch) { YamlProperties.messageSwitch = messageSwitch; - } + }*/ +/* @Value("${custom.message.secret_id}") private void setMessageSecretId(String messageSecretId) { YamlProperties.messageSecretId = messageSecretId; } +*/ - @Value("${custom.message.secret_key}") + /*@Value("${custom.message.secret_key}") private void setMessageSecretKey(String messageSecretKey) { YamlProperties.messageSecretKey = messageSecretKey; } @@ -105,14 +121,14 @@ @Value("${custom.message.templateId}") private void setMessageTemplateId(String messageTemplateId) { YamlProperties.messageTemplateId = messageTemplateId; - } + }*/ - @Value("${custom.alarm.task.switch}") + /* @Value("${custom.alarm.task.switch}") private void setAlarmTaskSwitch(String alarmTaskSwitch) { YamlProperties.alarmTaskSwitch = alarmTaskSwitch; } - - @Value("${custom.face.appId4Win}") +*/ + /*@Value("${custom.face.appId4Win}") private void setAppId4Win(String appId4Win) { YamlProperties.appId4Win = appId4Win; } @@ -130,70 +146,32 @@ @Value("${custom.face.sdkKey4Linux}") private void setSdkKey4Linux(String sdkKey4Linux) { YamlProperties.sdkKey4Linux = sdkKey4Linux; - } - - @Value("${custom.face.activeKey}") - private void setActiveKey(String activeKey) { - YamlProperties.activeKey = activeKey; - } - - @Value("${custom.face.type}") - public void setFaceType(Integer faceType) { - YamlProperties.faceType = faceType; - } -*/ - @Value("${custom.fontDynamicCode}") - public void setFontDynamicCodeSwitch(String fontDynamicCodeSwitch) { - YamlProperties.fontDynamicCodeSwitch = fontDynamicCodeSwitch; - } + }*/ @Value("${configFile.type}") public void setRunModel(Integer runModel) { YamlProperties.runModel = runModel; } - @Value("${custom.cors}") - public void setAllowedCORSDomainList(String allowedCORSDomainList) { - YamlProperties.allowedCORSDomainList = allowedCORSDomainList; + /*@Value("${ftpInforMation.ftpIp}") + public void setFtpIp(String ftpIp){ + YamlProperties.ftpIp=ftpIp; } - @Value("${custom.restartPasswd}") - public void setRestartPasswd(String restartPasswd) { - YamlProperties.restartPasswd = restartPasswd; + @Value("${ftpInforMation.ftpPort}") + public void setFtpPort(Integer ftpPort){ + YamlProperties.ftpPort=ftpPort; } - @Value("${custom.rsa.publicKeyOld}") - public void setPublicKeyOld(String publicKeyOld) { - YamlProperties.publicKeyOld = publicKeyOld; + @Value("${ftpInforMation.ftpUserName}") + public void setFtpUserName(String ftpUserName){ + YamlProperties.ftpUserName=ftpUserName; } - @Value("${custom.rsa.privateKeyOld}") - public void setPrivateKeyOld(String privateKeyOld) { - YamlProperties.privateKeyOld = privateKeyOld; - } + @Value("${ftpInforMation.ftpPassword}") + public void setFtpPassword(String ftpPassword){ + YamlProperties.ftpPassword=ftpPassword; + }*/ - @Value("${custom.rsa.publicKey}") - public void setPublicKey(String publicKey) { - YamlProperties.publicKey = publicKey; - } - @Value("${custom.rsa.privateKey}") - public void setPrivateKey(String privateKey) { - YamlProperties.privateKey = privateKey; - } - - @Value("${custom.aes.defaultKey}") - public void setAesDefaultKey(String aesDefaultKey) { - YamlProperties.aesDefaultKey = aesDefaultKey; - } - - @Value("${custom.aes.iv}") - public void setAesIv(String aesIv) { - YamlProperties.aesIv = aesIv; - } - - @Value("${custom.i18n}") - public void setI18nLanguage(String i18nLanguage) { - YamlProperties.i18nLanguage = i18nLanguage; - } } -- Gitblit v1.9.1