1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-02 23:23:28 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

配置文件的一些小调整

This commit is contained in:
2022-04-07 13:13:13 +08:00
parent 049f9d85d5
commit 38159719b8
11 changed files with 72 additions and 69 deletions

View File

@@ -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;
}

View File

@@ -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;
}