feat: article songId && fix s3 config

main
wangqing 10 months ago
parent 9746d3511b
commit 942f2a3296

@ -20,7 +20,7 @@ public class AwsS3Config {
@Bean
public S3Client s3Client(){
// AwsBasicCredentials awsBasicCredentials = AwsBasicCredentials.create("GLwHmLTZ05Kw9RyCGJXnIkua", "ynOBIqdNXH5HBgrVA29DTn4cUSh1wAI");
AwsBasicCredentials awsBasicCredentials = AwsBasicCredentials.create("c1exJ7ANL18OpMOtdCq7", "tHaEqbdLbsg7EivlT8mQyG1JwFNO8ZSpqW7KUte4");
AwsBasicCredentials awsBasicCredentials = AwsBasicCredentials.create("y19qONimTyRGdjpr19kk", "erE2tfHIimMv8sEX9Xe9DVrUtQetavOGwg9eMXpF");
S3Configuration s3Config = S3Configuration.builder().pathStyleAccessEnabled(true).build();
S3Client s3 = S3Client.builder()
.endpointOverride(URI.create("http://cdn2.indie.cn:19000/"))

@ -52,6 +52,8 @@ public class ArticleRespDTO implements Serializable {
private Long totalCommentReply;
@ApiModelProperty(value = "总阅览数,大于99显示99+")
private Long vistisNum;
@ApiModelProperty(value = "歌曲ID")
private String songId;
public static ArticleRespDTO convertPojo(Article article) {
@ -75,6 +77,7 @@ public class ArticleRespDTO implements Serializable {
response.setPubTime(article.getPubTime().format(DateTimeFormatter.ISO_DATE_TIME));
response.setAllowCommit(article.getAllowCommit());
response.setAutoPush(article.getAutoPush());
response.setSongId(article.getSongId());
return response;
}

@ -108,4 +108,6 @@ public class Article implements Serializable {
* **/
private String autoPush;
private String songId;
}

@ -19,7 +19,7 @@ public class AwsS3Config {
@Bean
public S3Client s3Client(){
// AwsBasicCredentials awsBasicCredentials = AwsBasicCredentials.create("GLwHmLTZ05Kw9RyCGJXnIkua", "ynOBIqdNXH5HBgrVA29DTn4cUSh1wAI");
AwsBasicCredentials awsBasicCredentials = AwsBasicCredentials.create("c1exJ7ANL18OpMOtdCq7", "tHaEqbdLbsg7EivlT8mQyG1JwFNO8ZSpqW7KUte4");
AwsBasicCredentials awsBasicCredentials = AwsBasicCredentials.create("y19qONimTyRGdjpr19kk", "erE2tfHIimMv8sEX9Xe9DVrUtQetavOGwg9eMXpF");
S3Configuration s3Config = S3Configuration.builder().pathStyleAccessEnabled(true).build();
S3Client s3 = S3Client.builder()
.endpointOverride(URI.create("http://cdn2.indie.cn:19000/"))

@ -29,7 +29,7 @@ public class AwsS3Config {
@Bean
public S3Client s3Client(){
// AwsBasicCredentials awsBasicCredentials = AwsBasicCredentials.create("GLwHmLTZ05Kw9RyCGJXnIkua", "ynOBIqdNXH5HBgrVA29DTn4cUSh1wAI");
AwsBasicCredentials awsBasicCredentials = AwsBasicCredentials.create("c1exJ7ANL18OpMOtdCq7", "tHaEqbdLbsg7EivlT8mQyG1JwFNO8ZSpqW7KUte4");
AwsBasicCredentials awsBasicCredentials = AwsBasicCredentials.create("y19qONimTyRGdjpr19kk", "erE2tfHIimMv8sEX9Xe9DVrUtQetavOGwg9eMXpF");
S3Configuration s3Config = S3Configuration.builder().pathStyleAccessEnabled(true).build();
S3Client s3 = S3Client.builder()
.endpointOverride(URI.create("http://cdn2.indie.cn:19000/"))

Loading…
Cancel
Save