package cn.reghao.tnb.file.app.config;

import cn.reghao.tnb.file.app.model.constant.OssType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author reghao
 * @date 2024-11-13 15:09:54
 */
@Configuration
@ConfigurationProperties(prefix = "app")
@Setter
@Getter
public class AppProperties {
    private String siteAddress;
    private Integer ossType;
    private Integer avatarChannelCode;

    public AppProperties() {
        this.ossType = OssType.localOss.getCode();
    }
}
