92 lines
1.8 KiB
Java
92 lines
1.8 KiB
Java
package com.evo.ding;
|
|
|
|
import lombok.Data;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
/**
|
|
* DingBase
|
|
*
|
|
* @author andy.shi
|
|
* @ClassName:DingBase
|
|
* @date: 2026年03月02日 8:48
|
|
* @remark: 开发人员联系方式 1042025947@qq.com/微信同步
|
|
*/
|
|
@Data
|
|
@Component
|
|
@ConfigurationProperties(prefix = "ding")
|
|
public class DingGlobalParams {
|
|
|
|
public static String baseUrl;
|
|
|
|
public static String url;
|
|
|
|
public static String clientId;
|
|
|
|
public static String clientSecret;
|
|
|
|
public static String aesKey;
|
|
|
|
public static String token;
|
|
|
|
public static String corpId;
|
|
|
|
|
|
public static String getBaseUrl() {
|
|
return baseUrl;
|
|
}
|
|
|
|
public void setBaseUrl(String baseUrl) {
|
|
DingGlobalParams.baseUrl = baseUrl;
|
|
}
|
|
|
|
public static String getCorpId() {
|
|
return corpId;
|
|
}
|
|
|
|
public void setCorpId(String corpId) {
|
|
DingGlobalParams.corpId = corpId;
|
|
}
|
|
|
|
public static String getAesKey() {
|
|
return aesKey;
|
|
}
|
|
|
|
public void setAesKey(String aesKey) {
|
|
DingGlobalParams.aesKey = aesKey;
|
|
}
|
|
|
|
public static String getToken() {
|
|
return token;
|
|
}
|
|
|
|
public void setToken(String token) {
|
|
DingGlobalParams.token = token;
|
|
}
|
|
|
|
public static String getUrl() {
|
|
return url;
|
|
}
|
|
|
|
public void setUrl(String url) {
|
|
DingGlobalParams.url = url;
|
|
}
|
|
|
|
public static String getClientId() {
|
|
return DingGlobalParams.clientId;
|
|
}
|
|
|
|
public void setClientId(String clientId) {
|
|
DingGlobalParams.clientId = clientId;
|
|
}
|
|
|
|
public static String getClientSecret() {
|
|
return clientSecret;
|
|
}
|
|
|
|
|
|
public void setClientSecret(String clientSecret) {
|
|
DingGlobalParams.clientSecret = clientSecret;
|
|
}
|
|
}
|