15 changed files with 36 additions and 179 deletions
@ -1,23 +0,0 @@ |
|||||
package com.bnyer.common.core.enums; |
|
||||
|
|
||||
import lombok.AllArgsConstructor; |
|
||||
import lombok.Getter; |
|
||||
|
|
||||
/** |
|
||||
* @author chengkun |
|
||||
* @date 2023/03/11 15:18 |
|
||||
*/ |
|
||||
@Getter |
|
||||
@AllArgsConstructor |
|
||||
public enum CommonImgsTypeEnum { |
|
||||
|
|
||||
HEAD("all","头像","0"), |
|
||||
BACK("photo","壁纸","1"), |
|
||||
ILLUSTRATION("illustration","插画","2"); |
|
||||
|
|
||||
private String type; |
|
||||
|
|
||||
private String name; |
|
||||
|
|
||||
private String code; |
|
||||
} |
|
||||
@ -1,26 +0,0 @@ |
|||||
package com.bnyer.system.config; |
|
||||
|
|
||||
import lombok.Getter; |
|
||||
import org.springframework.beans.factory.annotation.Value; |
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope; |
|
||||
import org.springframework.context.annotation.Configuration; |
|
||||
|
|
||||
/** |
|
||||
* pixaBay配置类 |
|
||||
* @author chengkun |
|
||||
* @date 2023/03/10 17:43 |
|
||||
*/ |
|
||||
@Configuration |
|
||||
@ConfigurationProperties(prefix = "bnyer.system.pixabay") |
|
||||
@Getter |
|
||||
@RefreshScope |
|
||||
public class PixaBayConfig { |
|
||||
|
|
||||
@Value("${bnyer.system.pixabay.apiKey}") |
|
||||
private String apiKey; |
|
||||
|
|
||||
@Value("${bnyer.system.pixabay.apiUrl}") |
|
||||
private String apiUrl; |
|
||||
|
|
||||
} |
|
||||
Loading…
Reference in new issue