package com.goldenwater.slgc.config;

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

/**
 * 外部 API 地址配置，对应 application.yml 中 goldenwater.api.*
 * 部署时修改配置文件即可切换外部数据源地址
 */
@Component
@ConfigurationProperties(prefix = "goldenwater.api")
public class ApiProperties {

    private String hydrology = "http://10.8.11.110:20080/outApi";
    private String zggc = "http://10.8.40.222/WebService/NewGQ.asmx";
    private String yjzh = "http://10.8.4.171:816/YJZH.asmx";
    private String gateRecord = "http://10.8.4.136:83/GongCheng";
    private String tbaddRealtime = "http://10.8.4.234:8888";
    private String tbaGx = "";
    private String waterSource = "";
    private String syqStation = "";

    public String getHydrology() { return hydrology; }
    public void setHydrology(String hydrology) { this.hydrology = hydrology; }

    public String getZggc() { return zggc; }
    public void setZggc(String zggc) { this.zggc = zggc; }

    public String getYjzh() { return yjzh; }
    public void setYjzh(String yjzh) { this.yjzh = yjzh; }

    public String getGateRecord() { return gateRecord; }
    public void setGateRecord(String gateRecord) { this.gateRecord = gateRecord; }

    public String getTbaddRealtime() { return tbaddRealtime; }
    public void setTbaddRealtime(String tbaddRealtime) { this.tbaddRealtime = tbaddRealtime; }

    public String getTbaGx() { return tbaGx; }
    public void setTbaGx(String tbaGx) { this.tbaGx = tbaGx; }

    public String getWaterSource() { return waterSource; }
    public void setWaterSource(String waterSource) { this.waterSource = waterSource; }

    public String getSyqStation() { return syqStation; }
    public void setSyqStation(String syqStation) { this.syqStation = syqStation; }
}
