package org.ts.ddcs.Config;

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

@Component
@Configuration
@ConfigurationProperties(prefix = "run-config.server", ignoreUnknownFields = false)
@Data
public class ServerConfig {
    private String serverId;
    private int port;
    private String templates;
    private String itemtemplates;
    private String relay_db_url;
    private String relay_db_username;
    private String relay_db_password;
    private boolean relay_db_isNeed;
    private String manage_managehost;
    private String manage_manageport;
    private String notifyurl;
    private String relay_db_dbtype;
    private String rtuUploadPhotoPath;
    private String taishanNotifyUrl;
    private boolean relayRemote;
    private boolean dataBaseSave;
    private String correctValueUrl;
    private String releayStyle;
    private String wxAppId;
    private String wxSecret;
    private boolean connectManage;
    private boolean rtuStatusCheck;
    private boolean relayToTaishan;
    private String projectImplementPhotoPath;
    private String imageServerPath;
    private String mqttSubTopic;
    private String mqttPubTopic;
    private String mqttBroker;
    private boolean relayToLog;
    private boolean dataShare;
    private String codeExt;
}
