diff --git a/Service/Cloud/Common/CloudConst.cs b/Service/Cloud/Common/CloudConst.cs index e5e7a93..4531ef2 100644 --- a/Service/Cloud/Common/CloudConst.cs +++ b/Service/Cloud/Common/CloudConst.cs @@ -39,6 +39,22 @@ public class CloudConst public static readonly string staSwapRecordRes = "staSwapRecordRes"; public static readonly string amtBat = "amtBat"; public static readonly string amtBatRes = "amtBatRes"; + public static readonly string ChargeRecordReport = "ChargeRecordReport"; + public static readonly string ChargeRecordReportsRes = "ChargeRecordReportsRes"; + public static readonly string stationRunStatus = "stationRunStatus"; + public static readonly string stationRunStatusRes = "stationRunStatusRes"; + public static readonly string stationChnRunStatus = "stationChnRunStatus"; + public static readonly string stationChnRunStatusRes = "stationChnRunStatusRes"; + public static readonly string faultReport = "faultReport"; + public static readonly string faultReportRes = "faultReportRes"; + public static readonly string evmDataInfo = "evmDataInfo"; + public static readonly string evmDataInfoRes = "evmDataInfoRes"; + public static readonly string acDataInfo = "acDataInfo"; + public static readonly string acDataInfoRes = "acDataInfoRes"; + public static readonly string eqmStateStartLogInfo = "eqmStateStartLogInfo"; + public static readonly string eqmStateStartLogInfoRes = "eqmStateStartLogInfoRes"; + public static readonly string eqmStateEndLogInfo = "eqmStateEndLogInfo"; + public static readonly string eqmStateEndLogInfoRes = "eqmStateEndLogInfoRes"; #endregion } \ No newline at end of file diff --git a/Service/Cloud/Msg/Cloud/Req/BatteryOperatingModel.cs b/Service/Cloud/Msg/Cloud/Req/BatteryOperatingModel.cs index e093e76..6798e1a 100644 --- a/Service/Cloud/Msg/Cloud/Req/BatteryOperatingModel.cs +++ b/Service/Cloud/Msg/Cloud/Req/BatteryOperatingModel.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Cloud.Req /// /// 3.2.7.1 后台服务器下发换电站的电池运营模型 /// - public class BatteryOperatingModel + public class BatteryOperatingModel : ICmd { /// /// 运营模型ID diff --git a/Service/Cloud/Msg/Cloud/Req/BusinessHour.cs b/Service/Cloud/Msg/Cloud/Req/BusinessHour.cs index 72dfd17..52a8a24 100644 --- a/Service/Cloud/Msg/Cloud/Req/BusinessHour.cs +++ b/Service/Cloud/Msg/Cloud/Req/BusinessHour.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Cloud.Req /// /// 3.2.6.1 后台服务器设置换电站的营业时段 /// - public class BusinessHour + public class BusinessHour : ICmd { /// /// 更新时间 diff --git a/Service/Cloud/Msg/Cloud/Req/CarCanStart.cs b/Service/Cloud/Msg/Cloud/Req/CarCanStart.cs index 0683ce9..b2b47fa 100644 --- a/Service/Cloud/Msg/Cloud/Req/CarCanStart.cs +++ b/Service/Cloud/Msg/Cloud/Req/CarCanStart.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Cloud.Req /// /// 1 云平台下发车辆开始换电指令 /// - public class CarCanStart + public class CarCanStart : ICmd { /// /// 订单号 diff --git a/Service/Cloud/Msg/Cloud/Req/ChargerElectricityPriceModel.cs b/Service/Cloud/Msg/Cloud/Req/ChargerElectricityPriceModel.cs index 83e273f..17bad8b 100644 --- a/Service/Cloud/Msg/Cloud/Req/ChargerElectricityPriceModel.cs +++ b/Service/Cloud/Msg/Cloud/Req/ChargerElectricityPriceModel.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Cloud.Req /// /// /// - public class ChargerElectricityPriceModel + public class ChargerElectricityPriceModel : ICmd { /// /// 更新时间 diff --git a/Service/Cloud/Msg/Cloud/Req/ElectricityPriceModel.cs b/Service/Cloud/Msg/Cloud/Req/ElectricityPriceModel.cs index 3e02125..69f75e1 100644 --- a/Service/Cloud/Msg/Cloud/Req/ElectricityPriceModel.cs +++ b/Service/Cloud/Msg/Cloud/Req/ElectricityPriceModel.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Cloud.Req /// /// 3.2.8.1 后台服务器下发换电站的电价模型 /// - public class ElectricityPriceModel + public class ElectricityPriceModel : ICmd { /// /// 计费模型ID diff --git a/Service/Cloud/Msg/Cloud/Req/OfflinePowerOnVehicleData.cs b/Service/Cloud/Msg/Cloud/Req/OfflinePowerOnVehicleData.cs index e086174..27b7756 100644 --- a/Service/Cloud/Msg/Cloud/Req/OfflinePowerOnVehicleData.cs +++ b/Service/Cloud/Msg/Cloud/Req/OfflinePowerOnVehicleData.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Cloud.Req /// /// 3.2.10.1 后台服务器下发离线换电车辆数据 /// - public class OfflinePowerOnVehicleData + public class OfflinePowerOnVehicleData : ICmd { /// /// 更新方式 diff --git a/Service/Cloud/Msg/Cloud/Req/ParameterAcquisition.cs b/Service/Cloud/Msg/Cloud/Req/ParameterAcquisition.cs index 2a93a2c..470cd99 100644 --- a/Service/Cloud/Msg/Cloud/Req/ParameterAcquisition.cs +++ b/Service/Cloud/Msg/Cloud/Req/ParameterAcquisition.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Cloud.Req /// /// 3.2.12.1 后台服务器下发参数获取 /// - public class ParameterAcquisition + public class ParameterAcquisition : ICmd { /// /// 自定义 diff --git a/Service/Cloud/Msg/Cloud/Req/ServiceableState.cs b/Service/Cloud/Msg/Cloud/Req/ServiceableState.cs index e48dfa1..4bbd1d7 100644 --- a/Service/Cloud/Msg/Cloud/Req/ServiceableState.cs +++ b/Service/Cloud/Msg/Cloud/Req/ServiceableState.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Cloud.Req /// /// 3.2.5.1 后台服务器下发换电站的可服务状态设置 /// - public class ServiceableState + public class ServiceableState : ICmd { /// /// 服务状态 diff --git a/Service/Cloud/Msg/Cloud/Req/SetConfigurationParameters.cs b/Service/Cloud/Msg/Cloud/Req/SetConfigurationParameters.cs index c6d07bb..f580b4f 100644 --- a/Service/Cloud/Msg/Cloud/Req/SetConfigurationParameters.cs +++ b/Service/Cloud/Msg/Cloud/Req/SetConfigurationParameters.cs @@ -11,7 +11,7 @@ namespace Service.Cloud.Msg.Cloud.Req /// /// 3.2.11.1 后台服务器下发设置配置参数 /// - public class SetConfigurationParameters + public class SetConfigurationParameters : ICmd { /// /// 可换 soc 阈值 diff --git a/Service/Cloud/Msg/Cloud/Req/SetStBaseInfo.cs b/Service/Cloud/Msg/Cloud/Req/SetStBaseInfo.cs index f096642..5142007 100644 --- a/Service/Cloud/Msg/Cloud/Req/SetStBaseInfo.cs +++ b/Service/Cloud/Msg/Cloud/Req/SetStBaseInfo.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Cloud.Req /// /// 3.2.3.1 后台服务器下发换电站的基础信息 /// - public class SetStBaseInfo + public class DeliverBasicInformation : ICmd { /// /// 电站编码 diff --git a/Service/Cloud/Msg/Cloud/Resp/AirConditioningDataResp.cs b/Service/Cloud/Msg/Cloud/Resp/AirConditioningDataResp.cs new file mode 100644 index 0000000..4458064 --- /dev/null +++ b/Service/Cloud/Msg/Cloud/Resp/AirConditioningDataResp.cs @@ -0,0 +1,25 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Cloud.Resp +{ + /// + /// 4.2.7.2 云平台反馈换电站空调数据信息 + /// + public class AirConditioningDataResp : ICmd + { + /// + /// 应答结果 + /// + public byte re { get; set; } + + public string GetCmd() + { + return CloudConst.acDataInfoRes; + } + } +} diff --git a/Service/Cloud/Msg/Cloud/Resp/ChannelStatusReportingResp.cs b/Service/Cloud/Msg/Cloud/Resp/ChannelStatusReportingResp.cs new file mode 100644 index 0000000..d4dcba5 --- /dev/null +++ b/Service/Cloud/Msg/Cloud/Resp/ChannelStatusReportingResp.cs @@ -0,0 +1,29 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Cloud.Resp +{ + /// + /// 3 云平台反馈换电站通道状态上报 + /// + public class ChannelStatusReportingResp : ICmd + { + /// + /// 应答结果 + /// + public byte re { get; set; } + /// + /// 接收失败原因 + /// + public byte rs { get; set; } + + public string GetCmd() + { + return CloudConst.stationChnRunStatusRes; + } + } +} diff --git a/Service/Cloud/Msg/Cloud/Resp/ChargeRecordReportingResp.cs b/Service/Cloud/Msg/Cloud/Resp/ChargeRecordReportingResp.cs new file mode 100644 index 0000000..f812272 --- /dev/null +++ b/Service/Cloud/Msg/Cloud/Resp/ChargeRecordReportingResp.cs @@ -0,0 +1,29 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Cloud.Resp +{ + /// + /// 云平台反馈换电站状态上报 + /// + public class ChargeRecordReportingResp : ICmd + { + /// + /// 应答结果 + /// + public byte re { get; set; } + /// + /// 接收失败原因 + /// + public string rs { get; set; } + + public string GetCmd() + { + return CloudConst.ChargeRecordReportsRes; + } + } +} diff --git a/Service/Cloud/Msg/Cloud/Resp/EndLogMessageResp.cs b/Service/Cloud/Msg/Cloud/Resp/EndLogMessageResp.cs new file mode 100644 index 0000000..97f886f --- /dev/null +++ b/Service/Cloud/Msg/Cloud/Resp/EndLogMessageResp.cs @@ -0,0 +1,29 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Cloud.Resp +{ + /// + /// 4.2.9.2 云平台反馈设备状态结束日志信息 + /// + public class EndLogMessageResp : ICmd + { + /// + /// 应答结果 + /// + public byte re { get; set; } + /// + /// 接收失败原因 + /// + public string rs { get; set; } + + public string GetCmd() + { + return CloudConst.eqmStateEndLogInfoRes; + } + } +} diff --git a/Service/Cloud/Msg/Cloud/Resp/HostStatusReportedResp.cs b/Service/Cloud/Msg/Cloud/Resp/HostStatusReportedResp.cs new file mode 100644 index 0000000..9f9a5f5 --- /dev/null +++ b/Service/Cloud/Msg/Cloud/Resp/HostStatusReportedResp.cs @@ -0,0 +1,25 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Cloud.Resp +{ + /// + /// 4.2.3.3 云平台反馈换电站状态上报 + /// + public class HostStatusReportedResp : ICmd + { + /// + /// 应答结果 + /// + public byte re { get; set; } + + public string GetCmd() + { + return CloudConst.stationRunStatusRes; + } + } +} diff --git a/Service/Cloud/Msg/Cloud/Resp/RealTimeFaultInfoResp.cs b/Service/Cloud/Msg/Cloud/Resp/RealTimeFaultInfoResp.cs new file mode 100644 index 0000000..e1fc21f --- /dev/null +++ b/Service/Cloud/Msg/Cloud/Resp/RealTimeFaultInfoResp.cs @@ -0,0 +1,25 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Cloud.Resp +{ + /// + /// 2 云平台反馈设备实时故障信息 + /// + public class RealTimeFaultInfoResp : ICmd + { + /// + /// 应答结果 + /// + public int re { get; set; } + + public string GetCmd() + { + return CloudConst.faultReportRes; + } + } +} diff --git a/Service/Cloud/Msg/Cloud/Resp/ReportingDeviceListResp.cs b/Service/Cloud/Msg/Cloud/Resp/ReportingDeviceListResp.cs index e0090f7..ef8574d 100644 --- a/Service/Cloud/Msg/Cloud/Resp/ReportingDeviceListResp.cs +++ b/Service/Cloud/Msg/Cloud/Resp/ReportingDeviceListResp.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Cloud.Resp /// /// 3.2.4. 2 后台应答/请求设备列表上报 /// - public class ReportingDeviceListResp + public class ReportingDeviceListResp : ICmd { /// /// 操作类型 diff --git a/Service/Cloud/Msg/Cloud/Resp/StartLogMessageResp.cs b/Service/Cloud/Msg/Cloud/Resp/StartLogMessageResp.cs new file mode 100644 index 0000000..ccb8d20 --- /dev/null +++ b/Service/Cloud/Msg/Cloud/Resp/StartLogMessageResp.cs @@ -0,0 +1,29 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Cloud.Resp +{ + /// + /// 4.2.8.2 云平台反馈设备状态开始日志信息 + /// + public class StartLogMessageResp : ICmd + { + /// + /// 应答结果 + /// + public byte re { get; set; } + /// + /// 接收失败原因 + /// + public byte rs { get; set; } + + public string GetCmd() + { + return CloudConst.eqmStateStartLogInfoRes; + } + } +} diff --git a/Service/Cloud/Msg/Cloud/Resp/TemperatureHumidityDataResp.cs b/Service/Cloud/Msg/Cloud/Resp/TemperatureHumidityDataResp.cs new file mode 100644 index 0000000..1b6fb41 --- /dev/null +++ b/Service/Cloud/Msg/Cloud/Resp/TemperatureHumidityDataResp.cs @@ -0,0 +1,25 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Cloud.Resp +{ + /// + /// 4.2.6.2 云平台反馈换电站温湿度数据信息 + /// + public class TemperatureHumidityDataResp : ICmd + { + /// + /// 应答结果 + /// + public byte re { get; set; } + + public string GetCmd() + { + return CloudConst.evmDataInfoRes; + } + } +} diff --git a/Service/Cloud/Msg/Cloud/Resp/UploadPowerChangeOrderResp.cs b/Service/Cloud/Msg/Cloud/Resp/UploadPowerChangeOrderResp.cs index 396c5b7..c2e261b 100644 --- a/Service/Cloud/Msg/Cloud/Resp/UploadPowerChangeOrderResp.cs +++ b/Service/Cloud/Msg/Cloud/Resp/UploadPowerChangeOrderResp.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Cloud.Resp /// /// /// - public class UploadPowerChangeOrderResp + public class UploadPowerChangeOrderResp : ICmd { /// /// 应答结果 diff --git a/Service/Cloud/Msg/Cloud/Resp/VehicleCertificationResp.cs b/Service/Cloud/Msg/Cloud/Resp/VehicleCertificationResp.cs index 50ea4f5..dd76693 100644 --- a/Service/Cloud/Msg/Cloud/Resp/VehicleCertificationResp.cs +++ b/Service/Cloud/Msg/Cloud/Resp/VehicleCertificationResp.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Cloud.Resp /// /// 2.1.1.2 后台应答换电站车辆认证的结果 /// - public class VehicleCertificationResp + public class VehicleCertificationResp : ICmd { /// /// 应答结果 diff --git a/Service/Cloud/Msg/Cloud/Resp/VehicleDataReportingResp.cs b/Service/Cloud/Msg/Cloud/Resp/VehicleDataReportingResp.cs index a439bff..9578dc7 100644 --- a/Service/Cloud/Msg/Cloud/Resp/VehicleDataReportingResp.cs +++ b/Service/Cloud/Msg/Cloud/Resp/VehicleDataReportingResp.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Cloud.Resp /// /// 2.1.3.3 云平台反馈换电车辆数据上报 /// - public class VehicleDataReportingResp + public class VehicleDataReportingResp : ICmd { /// /// 接收结果 diff --git a/Service/Cloud/Msg/Host/Req/AirConditioningData.cs b/Service/Cloud/Msg/Host/Req/AirConditioningData.cs new file mode 100644 index 0000000..bd71f4e --- /dev/null +++ b/Service/Cloud/Msg/Host/Req/AirConditioningData.cs @@ -0,0 +1,49 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Host.Req +{ + /// + /// 4.2.7.1 换电站空调数据信息 + /// + public class AirConditioningData : ICmd + { + /// + /// 场站编码 + /// + public string sn { get; set; } + /// + /// 空调编码 + /// + public string ad { get; set; } + /// + /// 空调名称 + /// + public string an { get; set; } + /// + /// 空调状态 + /// + public byte au { get; set; } + /// + /// 空调模式 + /// + public byte am { get; set; } + /// + /// 空调温度 + /// + public float ap { get; set; } + /// + /// 更新时刻 + /// + public DateTime bt { get; set; } + + public string GetCmd() + { + return CloudConst.acDataInfo; + } + } +} diff --git a/Service/Cloud/Msg/Host/Req/ChannelStatusReporting.cs b/Service/Cloud/Msg/Host/Req/ChannelStatusReporting.cs new file mode 100644 index 0000000..ab10358 --- /dev/null +++ b/Service/Cloud/Msg/Host/Req/ChannelStatusReporting.cs @@ -0,0 +1,49 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Host.Req +{ + /// + /// 4.2.4.2 换电站通道状态上报 + /// + public class ChannelStatusReporting : ICmd + { + /// + /// 换电通道编号 + /// + public int ec { get; set; } + /// + /// 工作状态 + /// + public int ws { get; set; } + /// + /// 换电通道状态 + /// + public int cs { get; set; } + /// + /// 是否有车 + /// + public int iv { get; set; } + /// + /// 锁止状态 + /// + public int ls { get; set; } + /// + /// 换电站通道故障等级 + /// + public int fl { get; set; } + /// + /// 更新时间 + /// + public int ut { get; set; } + + public string GetCmd() + { + return CloudConst.stationChnRunStatus; + } + } +} diff --git a/Service/Cloud/Msg/Host/Req/ChargeRecordReporting.cs b/Service/Cloud/Msg/Host/Req/ChargeRecordReporting.cs new file mode 100644 index 0000000..6cc9084 --- /dev/null +++ b/Service/Cloud/Msg/Host/Req/ChargeRecordReporting.cs @@ -0,0 +1,112 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Host.Req +{ + /// + /// 4.2.2.2 充电记录上报 + /// + public class ChargeRecordReporting : ICmd + { + /// + /// 充电流水号 + /// + public string orsn { get; set; } + /// + /// 换电订单号 + /// + public string son { get; set; } + /// + /// 换电结束时刻 + /// + public DateTime chanet { get; set; } + /// + /// 充电订单号 + /// + public string chrsn { get; set; } + /// + /// 电池序列号 + /// + public string bid { get; set; } + /// + /// 开始时间 + /// + public DateTime st { get; set; } + /// + /// 结束时间 + /// + public DateTime et { get; set; } + /// + /// 开始SOC + /// + public int ssoc { get; set; } + /// + /// 结束SOC + /// + public int esoc { get; set; } + /// + /// 开始SOE + /// + public float ssoe { get; set; } + /// + /// 结束SOE + /// + public float esoe { get; set; } + /// + /// 充电电量 + /// + public float ce { get; set; } + /// + /// 充电时长 + /// + public int ct { get; set; } + /// + /// 充电次数 + /// + public int cn { get; set; } + /// + /// 尖时段电量 + /// + public float tp { get; set; } + /// + /// 峰时段电量 + /// + public float pp { get; set; } + /// + /// 平时段电量 + /// + public float fp { get; set; } + /// + /// 谷时段电量 + /// + public float vp { get; set; } + /// + /// 充电前交流表 电量 + /// + public float qjd { get; set; } + /// + /// 充电后交流表 电量 + /// + public float hjd { get; set; } + /// + /// 上报方式 + /// + public int sfs { get; set; } + /// + /// 车架号 + /// + public string vin { get; set; } + /// + /// 是否为站外插 检充由 + /// + public int sfoc { get; set; } + public string GetCmd() + { + return CloudConst.ChargeRecordReport; + } + } +} diff --git a/Service/Cloud/Msg/Host/Req/EndLogMessage.cs b/Service/Cloud/Msg/Host/Req/EndLogMessage.cs new file mode 100644 index 0000000..0a16443 --- /dev/null +++ b/Service/Cloud/Msg/Host/Req/EndLogMessage.cs @@ -0,0 +1,49 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Host.Req +{ + /// + /// 4.2.9.1 换电站设备状态结束日志信息 + /// + public class EndLogMessage : ICmd + { + /// + /// 设备编号 + /// + public string en { get; set; } + /// + /// 状态值 + /// + public byte sv { get; set; } + /// + /// 状态名称 + /// + public string sm { get; set; } + /// + /// 开始时刻 + /// + public DateTime st { get; set; } + /// + /// 结束时刻 + /// + public DateTime et { get; set; } + /// + /// 持续时间 + /// + public int ke { get; set; } + /// + /// 采集模式 + /// + public int cm { get; set; } + public string GetCmd() + { + return CloudConst.eqmStateEndLogInfo; + } + + } +} diff --git a/Service/Cloud/Msg/Host/Req/HostStatusReported.cs b/Service/Cloud/Msg/Host/Req/HostStatusReported.cs new file mode 100644 index 0000000..d3493ed --- /dev/null +++ b/Service/Cloud/Msg/Host/Req/HostStatusReported.cs @@ -0,0 +1,33 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Host.Req +{ + /// + /// 4.2.3.2 换电站状态上报 + /// + public class HostStatusReported : ICmd + { + /// + /// 服务状态 + /// + public int rs { get; set; } + /// + /// 换电站运营状态 + /// + public int os { get; set; } + /// + /// 换电站总体故障等级 + /// + public int fl { get; set; } + + public string GetCmd() + { + return CloudConst.setOpModelRes; + } + } +} diff --git a/Service/Cloud/Msg/Host/Req/RealTimeFaultInfo.cs b/Service/Cloud/Msg/Host/Req/RealTimeFaultInfo.cs new file mode 100644 index 0000000..bda77c3 --- /dev/null +++ b/Service/Cloud/Msg/Host/Req/RealTimeFaultInfo.cs @@ -0,0 +1,53 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Host.Req +{ + /// + /// 4.2.5.1 换电站设备实时故障信息 + /// + public class RealTimeFaultInfo : ICmd + { + /// + /// 场站編码 + /// + public string sn { get; set; } + /// + /// 设备编号 + /// + public string en { get; set; } + /// + /// 故障码 + /// + public string fc { get; set; } + /// + /// 故障内容 + /// + public string ft { get; set; } + /// + /// 故障等级 + /// + public int fl { get; set; } + /// + /// 故障标志 + /// + public int fg { get; set; } + /// + /// 发生时间 + /// + public DateTime bt { get; set; } + /// + /// 采集模式 + /// + public int cm { get; set; } + + public string GetCmd() + { + return CloudConst.faultReport; + } + } +} diff --git a/Service/Cloud/Msg/Host/Req/ReportingDeviceList.cs b/Service/Cloud/Msg/Host/Req/ReportingDeviceList.cs index f0ebb73..31d8d00 100644 --- a/Service/Cloud/Msg/Host/Req/ReportingDeviceList.cs +++ b/Service/Cloud/Msg/Host/Req/ReportingDeviceList.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Host.Req /// /// 3.2.4 换电站上报设备列表 /// - public class ReportingDeviceList + public class ReportingDeviceList : ICmd { public int ot { get; set; } diff --git a/Service/Cloud/Msg/Host/Req/StartLogMessage.cs b/Service/Cloud/Msg/Host/Req/StartLogMessage.cs new file mode 100644 index 0000000..b0cc72e --- /dev/null +++ b/Service/Cloud/Msg/Host/Req/StartLogMessage.cs @@ -0,0 +1,41 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Host.Req +{ + /// + /// 4.2.8.1 换电站设备状态开始日志信息 + /// + public class StartLogMessage : ICmd + { + /// + /// 设备编号 + /// + public string en { get; set; } + /// + /// 状态值 + /// + public byte SV { get; set; } + /// + /// 状态名称 + /// + public string sm { get; set; } + /// + /// 变化时刻 + /// + public DateTime st { get; set; } + /// + /// 采集模式 + /// + public int cm { get; set; } + + public string GetCmd() + { + return CloudConst.eqmStateStartLogInfo; + } + } +} diff --git a/Service/Cloud/Msg/Host/Req/TemperatureHumidityData.cs b/Service/Cloud/Msg/Host/Req/TemperatureHumidityData.cs new file mode 100644 index 0000000..8813d0b --- /dev/null +++ b/Service/Cloud/Msg/Host/Req/TemperatureHumidityData.cs @@ -0,0 +1,40 @@ +using Service.Cloud.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Service.Cloud.Msg.Host.Req +{ + /// + /// 4.2.6.1 换电站温湿度数据信息 + /// + public class TemperatureHumidityData : ICmd + { + /// + /// 场站编码 + /// + public string sn { get; set; } + /// + /// 环境区域 + /// + public string ea { get; set; } + /// + /// 环境温度 + /// + public float et { get; set; } + /// + /// 环境湿度 + /// + public float eh { get; set; } + /// + /// 发生时间 + /// + public DateTime bt { get; set; } + public string GetCmd() + { + return CloudConst.evmDataInfo; + } + } +} diff --git a/Service/Cloud/Msg/Host/Req/UploadPowerChangeOrder.cs b/Service/Cloud/Msg/Host/Req/UploadPowerChangeOrder.cs index 20a0a1f..751ef6a 100644 --- a/Service/Cloud/Msg/Host/Req/UploadPowerChangeOrder.cs +++ b/Service/Cloud/Msg/Host/Req/UploadPowerChangeOrder.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Host.Req /// /// 4.2.1.1 换电上传换电订单 /// - public class UploadPowerChangeOrder + public class UploadPowerChangeOrder : ICmd { /// /// 换电站编码 diff --git a/Service/Cloud/Msg/Host/Req/VehicleCertification.cs b/Service/Cloud/Msg/Host/Req/VehicleCertification.cs index 94b3156..b60ad51 100644 --- a/Service/Cloud/Msg/Host/Req/VehicleCertification.cs +++ b/Service/Cloud/Msg/Host/Req/VehicleCertification.cs @@ -11,7 +11,7 @@ namespace Service.Cloud.Msg.Host.Req /// /// 2.1.1.1 换电站进行车辆认证 /// - public class VehicleCertification + public class VehicleCertification : ICmd { /// /// 认证方式 diff --git a/Service/Cloud/Msg/Host/Req/VehicleDataReporting.cs b/Service/Cloud/Msg/Host/Req/VehicleDataReporting.cs index 3a4900b..9be7959 100644 --- a/Service/Cloud/Msg/Host/Req/VehicleDataReporting.cs +++ b/Service/Cloud/Msg/Host/Req/VehicleDataReporting.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Host.Req /// /// 换电车辆数据上报 /// - public class VehicleDataReporting + public class VehicleDataReporting : ICmd { /// /// 订单号 diff --git a/Service/Cloud/Msg/Host/Resp/BatteryOperatingModelResp.cs b/Service/Cloud/Msg/Host/Resp/BatteryOperatingModelResp.cs index 8749677..4571829 100644 --- a/Service/Cloud/Msg/Host/Resp/BatteryOperatingModelResp.cs +++ b/Service/Cloud/Msg/Host/Resp/BatteryOperatingModelResp.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Host.Resp /// /// 3.2.7.2 换电站应答后台服务器设置换电站的电池运营模型 /// - public class BatteryOperatingModelResp + public class BatteryOperatingModelResp : ICmd { /// /// 应答结果 diff --git a/Service/Cloud/Msg/Host/Resp/BusinessHourResp.cs b/Service/Cloud/Msg/Host/Resp/BusinessHourResp.cs index 806f038..af133b6 100644 --- a/Service/Cloud/Msg/Host/Resp/BusinessHourResp.cs +++ b/Service/Cloud/Msg/Host/Resp/BusinessHourResp.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Host.Resp /// /// 3.2.6.2 换电站应答后台服务器下发后台服务器设置换电站的营业时段 /// - public class BusinessHourResp + public class BusinessHourResp : ICmd { /// /// 应答结果 diff --git a/Service/Cloud/Msg/Host/Resp/ChargerElectricityPriceModelResp.cs b/Service/Cloud/Msg/Host/Resp/ChargerElectricityPriceModelResp.cs index 22a446e..c64ca65 100644 --- a/Service/Cloud/Msg/Host/Resp/ChargerElectricityPriceModelResp.cs +++ b/Service/Cloud/Msg/Host/Resp/ChargerElectricityPriceModelResp.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Host.Resp /// /// 2 换电站应答后台服务器下发换电站充电电价模型 /// - public class ChargerElectricityPriceModelResp + public class ChargerElectricityPriceModelResp : ICmd { /// /// 应答结果 diff --git a/Service/Cloud/Msg/Host/Resp/ElectricityPriceModelResp.cs b/Service/Cloud/Msg/Host/Resp/ElectricityPriceModelResp.cs index 467e65a..7022488 100644 --- a/Service/Cloud/Msg/Host/Resp/ElectricityPriceModelResp.cs +++ b/Service/Cloud/Msg/Host/Resp/ElectricityPriceModelResp.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Host.Resp /// /// 3.2.9.1 后台服务器下发换电站充电机的电价模型 /// - public class ElectricityPriceModelResp + public class ElectricityPriceModelResp : ICmd { /// /// 应答结果 diff --git a/Service/Cloud/Msg/Host/Resp/OfflinePowerOnVehicleDataResp.cs b/Service/Cloud/Msg/Host/Resp/OfflinePowerOnVehicleDataResp.cs index 630a452..27ff65d 100644 --- a/Service/Cloud/Msg/Host/Resp/OfflinePowerOnVehicleDataResp.cs +++ b/Service/Cloud/Msg/Host/Resp/OfflinePowerOnVehicleDataResp.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Host.Resp /// /// 3.2.9.2 换电站应答后台服务器下发离线换电车辆数据 /// - public class OfflinePowerOnVehicleDataResp + public class OfflinePowerOnVehicleDataResp : ICmd { /// /// 应答结果 diff --git a/Service/Cloud/Msg/Host/Resp/ParameterAcquisitionResp.cs b/Service/Cloud/Msg/Host/Resp/ParameterAcquisitionResp.cs index 2b1cd04..a1800ee 100644 --- a/Service/Cloud/Msg/Host/Resp/ParameterAcquisitionResp.cs +++ b/Service/Cloud/Msg/Host/Resp/ParameterAcquisitionResp.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Host.Resp /// /// 3.2.11.2 换电站应答后台服务器下发参数获取 /// - public class ParameterAcquisitionResp + public class ParameterAcquisitionResp : ICmd { /// /// 应答结果 diff --git a/Service/Cloud/Msg/Host/Resp/PowerChangeCommandResp.cs b/Service/Cloud/Msg/Host/Resp/PowerChangeCommandResp.cs index b0d5f1a..a04f097 100644 --- a/Service/Cloud/Msg/Host/Resp/PowerChangeCommandResp.cs +++ b/Service/Cloud/Msg/Host/Resp/PowerChangeCommandResp.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Host.Resp /// /// 2 换电站应答车辆开始换电指令 /// - public class PowerChangeCommandResp + public class PowerChangeCommandResp : ICmd { /// /// 接收结果 diff --git a/Service/Cloud/Msg/Host/Resp/SetConfigurationParametersResp.cs b/Service/Cloud/Msg/Host/Resp/SetConfigurationParametersResp.cs index b63fb06..c6f0b0a 100644 --- a/Service/Cloud/Msg/Host/Resp/SetConfigurationParametersResp.cs +++ b/Service/Cloud/Msg/Host/Resp/SetConfigurationParametersResp.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Host.Resp /// /// 1.2 换电站应答后台服务器下发参数设置 /// - public class SetConfigurationParametersResp + public class SetConfigurationParametersResp : ICmd { /// /// 应答结果 diff --git a/Service/Cloud/Msg/Host/Resp/SetServiceRes.cs b/Service/Cloud/Msg/Host/Resp/SetServiceRes.cs index a6671a8..be247c7 100644 --- a/Service/Cloud/Msg/Host/Resp/SetServiceRes.cs +++ b/Service/Cloud/Msg/Host/Resp/SetServiceRes.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Host.Resp /// /// 3.2.5.2 换电站应答后台服务器下发换电站的可服务状态设置 /// - public class SetServiceRes + public class ServiceableStateResp : ICmd { /// /// 应答结果 diff --git a/Service/Cloud/Msg/Host/Resp/SetStBaseInfoRes.cs b/Service/Cloud/Msg/Host/Resp/SetStBaseInfoRes.cs index e29738e..384c6ba 100644 --- a/Service/Cloud/Msg/Host/Resp/SetStBaseInfoRes.cs +++ b/Service/Cloud/Msg/Host/Resp/SetStBaseInfoRes.cs @@ -10,7 +10,7 @@ namespace Service.Cloud.Msg.Host.Resp /// /// 3.2.3.2 换电站应答后台服务器下发换电站的基础信息 /// - public class SetStBaseInfoRes + public class DeliverBasicInformationResp : ICmd { /// /// 应答结果 diff --git a/WebStarter/obj/Debug/net6.0/staticwebassets.build.json b/WebStarter/obj/Debug/net6.0/staticwebassets.build.json index 572be60..309b0b1 100644 --- a/WebStarter/obj/Debug/net6.0/staticwebassets.build.json +++ b/WebStarter/obj/Debug/net6.0/staticwebassets.build.json @@ -1,19 +1,11 @@ { "Version": 1, - "Hash": "FS59OvTZ9B6lpwaxIjb4jYpPMI2uWVuvwpvRJoWtEFc=", + "Hash": "7euZr+Skxn+CPwHhQ3H6LZuur9IzJqC+CYg6oY75X7A=", "Source": "WebStarter", "BasePath": "_content/WebStarter", "Mode": "Default", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], - "DiscoveryPatterns": [ - { - "Name": "WebStarter\\wwwroot", - "Source": "WebStarter", - "ContentRoot": "D:\\Desktop\\huannengMain\\WebStarter\\wwwroot\\", - "BasePath": "_content/WebStarter", - "Pattern": "**" - } - ], + "DiscoveryPatterns": [], "Assets": [] } \ No newline at end of file