package com.bcxin.backend.domain.configs;

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 int defaultTimeoutSecond = 10;

    public static int connectTimeoutSecond = 10;

    public static int dataTimeoutSecond = 10;

    public static int threadPoolSize = 5;

    public static int ftpConnectionSize = 10;

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

}
