package cn.nianxx.thhotel.workflows.reservation.service.impl;

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

/**
 * Reservation 演示数据 seed 配置。默认关闭，访问口令只能通过环境变量或本地配置注入。
 */
@Component
@ConfigurationProperties(prefix = "reservation.demo-data")
public class ReservationDemoDataProperties {

    /** 是否启用演示数据 seed 接口。 */
    private boolean enabled = false;
    /** 演示数据 seed 访问口令。 */
    private String accessKey = "";

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }
}
