package com.smyhub.store.mengyastorebackendjava.config;

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

@Data
@Component
@ConfigurationProperties(prefix = "app")
public class AppProperties {

    private String adminToken = "changeme";

    private String authApiUrl = "https://auth.api.shumengya.top";

    /** Mirrors Go APP_ENV: {@code development} | {@code production}; used by system-status panel. */
    private String appEnv = "development";

    private boolean rabbitmqEnabled = false;

    /**
     * Mirrors Go REDIS_ENABLED (default on unless explicitly disabled).
     */
    private boolean redisEnabled = true;

    private String rabbitmqEnv = "dev";

    private String redisEnv = "dev";

    private String publicApiBaseUrl = "";

    private String corsAllowedOrigins = "http://localhost:5173,http://localhost:3000";
}
