package cn.myapps.conf;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Auther linqinglin
 * @date 2022/3/27 15:51
 */
@Component
@ConfigurationProperties(prefix = "file.mode")
public class FileModeConfig {

    /** 开关 true开 false关 */
    private static Boolean useFtp = false;

    private static String host;

    private static String userName;

    private static String password;

    private static int port;

    private static String filePath;

    public static Boolean getUseFtp() {
        return useFtp;
    }

    public void setUseFtp(Boolean useFtp) {
        FileModeConfig.useFtp = useFtp;
    }

    public static String getHost() {
        return host;
    }

    public void setHost(String host) {
        FileModeConfig.host = host;
    }

    public static String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        FileModeConfig.userName = userName;
    }

    public static String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        FileModeConfig.password = password;
    }

    public static int getPort() {
        return port;
    }

    public void setPort(int port) {
        FileModeConfig.port = port;
    }

    public static String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        FileModeConfig.filePath = filePath;
    }

}
