namespace PetWashControl.Services; public class ConfigurationService { // https://localhost:7203/ 本地 public string ApiBaseUrl { get; set; } = "http://localhost:5000/"; public string MqttBrokerHost { get; set; } = "101.132.182.216"; public int MqttBrokerPort { get; set; } = 1883; public string MqttApiKey { get; set; } = "dc240ab5ec"; public string MqttId { get; set; } = "13064"; public string MqttClientId { get; set; } = "PetWashControl"; // Modbus TCP 配置 public string ModbusIpAddress { get; set; } = "127.0.0.1"; public int ModbusPort { get; set; } = 502; public byte ModbusSlaveId { get; set; } = 1; public int ModbusConnectTimeoutMs { get; set; } = 5000; public int ModbusReadTimeoutMs { get; set; } = 3000; public int PaymentCheckIntervalSeconds { get; set; } = 2; public int WashSimulationSeconds { get; set; } = 10; // 洗护流程时间参数(单位:分钟) public int FirstSprayWaterTime { get; set; } = 2; // 首次喷水时间 public int AfterShampoo1SprayTime { get; set; } = 2; // 沐浴1后喷水时间 public int AfterShampoo2SprayTime { get; set; } = 2; // 沐浴2后喷水时间 public int AfterShampoo3SprayTime { get; set; } = 2; // 沐浴3后喷水时间 public int SprayShampoo1Time { get; set; } = 1; // 喷沐浴露1时间 public int SprayShampoo2Time { get; set; } = 1; // 喷沐浴露2时间 public int SprayShampoo3Time { get; set; } = 1; // 喷沐浴露3时间 public int ColdAirTime { get; set; } = 2; // 冷风机时间 public int HotAirTime { get; set; } = 5; // 热风机时间 public int UvSterilizationTime { get; set; } = 3; // 紫外线杀菌时间 }