package com.dne.ems.config;

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

import lombok.Data;

/**
 * 文件存储配置属性类，用于管理文件上传存储的相关配置
 *
 * <p>该配置类通过Spring Boot的@ConfigurationProperties注解，
 * 自动绑定application配置文件中以"file"为前缀的属性。
 * 主要用于指定上传文件的存储目录。
 *
 * <p>使用示例：在application.yml中配置
 * <pre>
 * file:
 *   upload-dir: /path/to/uploads
 * </pre>
 *
 * @author DNE开发团队
 * @version 1.0
 * @since 2024
 */
@Component
@ConfigurationProperties(prefix = "file")
@Data
public class FileStorageProperties {

    /**
     * The directory where uploaded files will be stored.
     * This path should be configured in the application.yml file.
     * Example: file.upload-dir=/path/to/your/upload-dir
     */
    private String uploadDir;

}