package com.sikey.wa04.business.infrastructure.configuration;

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

@Data
@Configuration
@ConfigurationProperties(prefix = "ucloud")
public class UCloudConfig {

    @Value("${spring.profiles.active}")
    private String active;

    private String projectId;
    private String publicKey;
    private String privateKey;
    private String templateId;
    private String sigContent;

    public boolean isRelease() {
        return "prod".equals(active);
    }
}
