package com.rj.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 应用配置类
 *
 * @author Auto Generated
 * @since 2025-01-01
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "app")
public class AppConfig {

    /**
     * 应用时区，默认为 Asia/Shanghai
     */
    private String timezone = "Asia/Shanghai";

    /**
     * 调度器配置
     */
    private SchedulerConfig scheduler = new SchedulerConfig();

    /**
     * 调度器配置类
     */
    @Data
    public static class SchedulerConfig {
        /**
         * 是否启用调度器，默认为 true
         */
        private boolean start = true;
    }
}

