package com.jsowell.common.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Data
public class FtpConfig {
    @Value("${remoteUpdate.server}")
    String ip;

    @Value("${remoteUpdate.port}")
    int port;

    @Value("${remoteUpdate.username}")
    String username;

    @Value("${remoteUpdate.password}")
    String password;

    @Value("${remoteUpdate.uploadPath}")
    String uploadPath;

    @Value("${remoteUpdate.uploadPath}")
    String downPath;

    // 在Controller中用于第二层与第三层路径的拼接
    public static String getPropertyStaffDir() {
        return "/propertyStaffImage";
    }
}
