package cn.axzo.workflow.core.conf;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 支持动态刷新配置属性
 *
 * @author wangli
 * @since 2024/5/15 15:07
 */
@Component
@Data
@RefreshScope
public class SupportRefreshProperties {

    @Value("${workflow.apiLog.enable: false}")
    private Boolean apiLogEnable;

    @Value("${workflow.mqLog.enable: true}")
    private Boolean mqLogEnable;
}
