mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-02 23:23:28 +08:00
配置文件的一些小调整
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package plus.bookshelf.Config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Data
|
||||
@Component
|
||||
public class QCloudCosConfig {
|
||||
@Value("${qcloud.cos.accessKey}")
|
||||
private String accessKey;
|
||||
|
||||
@Value("${qcloud.cos.secretKey}")
|
||||
private String secretKey;
|
||||
|
||||
@Value("${qcloud.cos.regionName}")
|
||||
private String regionName;
|
||||
|
||||
@Value("${qcloud.cos.bucketName}")
|
||||
private String bucketName;
|
||||
|
||||
@Value("${qcloud.cos.keyName}")
|
||||
private String keyName;
|
||||
}
|
@@ -0,0 +1,50 @@
|
||||
package plus.bookshelf.Config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Data
|
||||
public class ThirdPartyConfig {
|
||||
|
||||
// Gitee
|
||||
@Value("${thirdparty.gitee.clientid}")
|
||||
private String giteeClientId;
|
||||
@Value("${thirdparty.gitee.clientsecret}")
|
||||
private String giteeClientsecret;
|
||||
@Value("${thirdparty.gitee.redirecturi}")
|
||||
private String giteeRedirecturi;
|
||||
|
||||
// OSCHINA
|
||||
@Value("${thirdparty.oschina.clientid}")
|
||||
private String oschinaClientId;
|
||||
@Value("${thirdparty.oschina.clientsecret}")
|
||||
private String oschinaClientsecret;
|
||||
@Value("${thirdparty.oschina.redirecturi}")
|
||||
private String oschinaRedirecturi;
|
||||
|
||||
// 飞书
|
||||
@Value("${thirdparty.feishu.clientid}")
|
||||
private String feishuClientId;
|
||||
@Value("${thirdparty.feishu.clientsecret}")
|
||||
private String feishuClientsecret;
|
||||
@Value("${thirdparty.feishu.redirecturi}")
|
||||
private String feishuRedirecturi;
|
||||
|
||||
// QQ
|
||||
@Value("${thirdparty.qq.clientid}")
|
||||
private String qqClientid;
|
||||
@Value("${thirdparty.qq.clientsecret}")
|
||||
private String qqClientsecret;
|
||||
@Value("${thirdparty.qq.redirecturi}")
|
||||
private String qqRedirecturi;
|
||||
|
||||
//GitHub
|
||||
@Value("${thirdparty.github.clientid}")
|
||||
private String githubClientid;
|
||||
@Value("${thirdparty.github.clientsecret}")
|
||||
private String githubClientsecret;
|
||||
@Value("${thirdparty.github.redirecturi}")
|
||||
private String githubRedirecturi;
|
||||
}
|
Reference in New Issue
Block a user