diff --git a/Service/Cloud/Common/CloudConst.cs b/Service/Cloud/Common/CloudConst.cs
index b5be3ac..d336670 100644
--- a/Service/Cloud/Common/CloudConst.cs
+++ b/Service/Cloud/Common/CloudConst.cs
@@ -6,6 +6,37 @@ public class CloudConst
public static readonly string signIn = "signIn";
public static readonly string signInRes = "signInRes";
+ public static readonly string carAuth = "carAuth";
+ public static readonly string carAuthRes = "carAuthRes";
+ public static readonly string carCanStart = "carCanStart";
+ public static readonly string carCanStartRes = "carCanStartRes";
+ ///
+ /// 2 换电车辆数据上报
+ ///
+ public static readonly string CardataReport = "CardataReport";
+ public static readonly string CardataReportRes = "CardataReportRes";
+ public static readonly string setStBaseInfo = "setStBaseInfo";
+ public static readonly string setStBaseInfoRes = "setStBaseInfoRes";
+ public static readonly string devList = "devList";
+ public static readonly string setServiceRes = "setServiceRes";
+ public static readonly string devListRep = "devListRep";
+ public static readonly string setService = "setService";
+ public static readonly string setOpTime = "setOpTime";
+ public static readonly string setOpTimeRes = "setOpTimeRes";
+ public static readonly string setOpModel = "setOpModel";
+ public static readonly string setOpModelRes = "setOpModelRes";
+ public static readonly string setStaPrice = "setStaPrice";
+ public static readonly string setStaPriceRes = "setStaPriceRes";
+ public static readonly string setChargePrice = "setChargePrice";
+ public static readonly string setChargePriceRes = "setChargePriceRes";
+ public static readonly string setChangeCarData = "setChangeCarData";
+ public static readonly string setChangeCarDataRes = "setChangeCarDataRes";
+ public static readonly string setConfig = "setConfig";
+ public static readonly string setConfigRes = "setConfigRes";
+ public static readonly string getConfig = "getConfig";
+ public static readonly string getConfigRes = "getConfigRes";
+ public static readonly string staSwapRecord = "staSwapRecord";
+ public static readonly string staSwapRecordRes = "staSwapRecordRes";
public static readonly string amtBat = "amtBat";
public static readonly string amtBatRes = "amtBatRes";
diff --git a/Service/Cloud/Msg/Cloud/Req/BatteryOperatingModel.cs b/Service/Cloud/Msg/Cloud/Req/BatteryOperatingModel.cs
new file mode 100644
index 0000000..e093e76
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Req/BatteryOperatingModel.cs
@@ -0,0 +1,44 @@
+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.Req
+{
+ ///
+ /// 3.2.7.1 后台服务器下发换电站的电池运营模型
+ ///
+ public class BatteryOperatingModel
+ {
+ ///
+ /// 运营模型ID
+ ///
+ public int oid { get; set; }
+ ///
+ /// 更新时间
+ ///
+ public string ut { get; set; }
+ ///
+ /// 开始时段
+ ///
+ public string st { get; set; }
+ ///
+ /// 结束时段
+ ///
+ public string et { get; set; }
+ ///
+ /// 该时段需要的电池类型编 号
+ ///
+ public string btc { get; set; }
+ ///
+ /// 该时段需要的电池数量
+ ///
+ public int bc { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.setOpModel;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Cloud/Req/BusinessHour.cs b/Service/Cloud/Msg/Cloud/Req/BusinessHour.cs
new file mode 100644
index 0000000..72dfd17
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Req/BusinessHour.cs
@@ -0,0 +1,38 @@
+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.Req
+{
+ ///
+ /// 3.2.6.1 后台服务器设置换电站的营业时段
+ ///
+ public class BusinessHour
+ {
+ ///
+ /// 更新时间
+ ///
+ public string ut { get; set; }
+ public string sn { get; set; }//TODO::此字段在示例中,未标明含义
+ public List seg = new();
+ public string GetCmd()
+ {
+ return CloudConst.setOpTime;
+ }
+ }
+
+ public class SEG
+ {
+ ///
+ /// 营业的开始时间
+ ///
+ public string st { get; set; }
+ ///
+ /// 营业的结束时间
+ ///
+ public string et { get; set; }
+ }
+}
diff --git a/Service/Cloud/Msg/Cloud/Req/ChargerElectricityPriceModel.cs b/Service/Cloud/Msg/Cloud/Req/ChargerElectricityPriceModel.cs
new file mode 100644
index 0000000..83e273f
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Req/ChargerElectricityPriceModel.cs
@@ -0,0 +1,52 @@
+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.Req
+{
+ ///
+ ///
+ ///
+ public class ChargerElectricityPriceModel
+ {
+ ///
+ /// 更新时间
+ ///
+ public string ut { get; set; }
+ ///
+ /// 电价模型id
+ ///
+ public int ceid { get; set; }
+
+
+ public List seg = new();
+
+ public string GetCmd()
+ {
+ return CloudConst.setChargePrice;
+ }
+ }
+
+ public class Seg
+ {
+ ///
+ /// 电价
+ ///
+ public float ep { get; set; }
+ ///
+ /// 开始时段
+ ///
+ public DateTime st { get; set; }
+ ///
+ /// 结束时段
+ ///
+ public DateTime et { get; set; }
+ ///
+ /// 时段序号
+ ///
+ public int pr { get; set; }
+ }
+}
diff --git a/Service/Cloud/Msg/Cloud/Req/DeliverBasicInformation.cs b/Service/Cloud/Msg/Cloud/Req/DeliverBasicInformation.cs
new file mode 100644
index 0000000..ed61ef7
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Req/DeliverBasicInformation.cs
@@ -0,0 +1,94 @@
+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.Req
+{
+ ///
+ /// 3.2.3.1 后台服务器下发换电站的基础信息
+ ///
+ public class DeliverBasicInformation
+ {
+ ///
+ /// 电站编码
+ ///
+ public string sn { get; set; }
+ ///
+ /// 换电站名称
+ ///
+ public string Sm { get; set; }
+ ///
+ /// 换电站识别号
+ ///
+ public string SS { get; set; }
+ ///
+ /// 地理位置
+ ///
+ public string sl { get; set; }
+ ///
+ /// 换电站类型
+ ///
+ public string st { get; set; }
+ ///
+ /// 经度
+ ///
+ public string ld { get; set; }
+ ///
+ /// 纬度
+ ///
+ public string lt { get; set; }
+ ///
+ /// 区域编号
+ ///
+ public string ac { get; set; }
+ ///
+ /// 区域名称
+ ///
+ public string am { get; set; }
+ ///
+ /// 营运时间
+ ///
+ public DateTime ot { get; set; }
+ ///投放时间
+ public DateTime lm { get; set; }
+ ///
+ /// 联系方式
+ ///
+ public string cw { get; set; }
+ ///
+ /// 负责人
+ ///
+ public string pp { get; set; }
+ ///
+ /// 所属运营企业
+ ///
+ public string sc { get; set; }
+ ///
+ /// 所属运营企业统一社 会信用代码
+ ///
+ public string cc { get; set; }
+ ///
+ /// 站控主机软件版本号
+ ///
+ public string sv { get; set; }
+ ///
+ /// 供应商代码
+ ///
+ public string sp { get; set; }
+ ///
+ /// 封面图片文件id
+ ///
+ public long cb { get; set; }
+ ///
+ /// 换电站基础信息版本号
+ ///
+ public string bs { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.setStBaseInfo;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Cloud/Req/ElectricityPriceModel.cs b/Service/Cloud/Msg/Cloud/Req/ElectricityPriceModel.cs
new file mode 100644
index 0000000..3e02125
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Req/ElectricityPriceModel.cs
@@ -0,0 +1,42 @@
+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.Req
+{
+ ///
+ /// 3.2.8.1 后台服务器下发换电站的电价模型
+ ///
+ public class ElectricityPriceModel
+ {
+ ///
+ /// 计费模型ID
+ ///
+ public int eid { get; set; }
+ ///
+ /// 更新时间
+ ///
+ public string ut { get; set; }
+ ///
+ /// 开始时段
+ ///
+ public string st { get; set; }
+ ///
+ /// 结束时段
+ ///
+ public string et { get; set; }
+ ///
+ /// 换电服务单价
+ ///
+ public double pr { get; set; }
+
+ public string GetCmd()
+ {
+ return CloudConst.setStaPrice;
+ }
+
+ }
+}
diff --git a/Service/Cloud/Msg/Cloud/Req/OfflinePowerOnVehicleData.cs b/Service/Cloud/Msg/Cloud/Req/OfflinePowerOnVehicleData.cs
new file mode 100644
index 0000000..e086174
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Req/OfflinePowerOnVehicleData.cs
@@ -0,0 +1,62 @@
+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.Req
+{
+ ///
+ /// 3.2.10.1 后台服务器下发离线换电车辆数据
+ ///
+ public class OfflinePowerOnVehicleData
+ {
+ ///
+ /// 更新方式
+ ///
+ public int um { get; set; }
+
+ public List data { get; set; }
+
+ public string GetCmd()
+ {
+ return CloudConst.setChangeCarData;
+ }
+ }
+ public class Data
+ {
+ ///
+ /// 时段序号
+ ///
+ public int pr { get; set; }
+ ///
+ /// 车辆VIN
+ ///
+ public string vin { get; set; }
+ ///
+ /// mac地址
+ ///
+ public string mac { get; set; }
+ ///
+ /// 认证方式
+ ///
+ public int ty { get; set; }
+ ///
+ /// 车牌号
+ ///
+ public string cn { get; set; }
+ ///
+ /// 所属车队
+ ///
+ public string mc { get; set; }
+ ///
+ /// 生效时间
+ ///
+ public DateTime st { get; set; }
+ ///
+ /// 失效时间
+ ///
+ public DateTime et { get; set; }
+ }
+}
diff --git a/Service/Cloud/Msg/Cloud/Req/ParameterAcquisition.cs b/Service/Cloud/Msg/Cloud/Req/ParameterAcquisition.cs
new file mode 100644
index 0000000..2a93a2c
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Req/ParameterAcquisition.cs
@@ -0,0 +1,24 @@
+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.Req
+{
+ ///
+ /// 3.2.12.1 后台服务器下发参数获取
+ ///
+ public class ParameterAcquisition
+ {
+ ///
+ /// 自定义
+ ///
+ public string param { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.getConfig;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Cloud/Req/PowerChangeCommand.cs b/Service/Cloud/Msg/Cloud/Req/PowerChangeCommand.cs
new file mode 100644
index 0000000..dad7d68
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Req/PowerChangeCommand.cs
@@ -0,0 +1,36 @@
+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.Req
+{
+ ///
+ /// 1 云平台下发车辆开始换电指令
+ ///
+ public class PowerChangeCommand
+ {
+ ///
+ /// 订单号
+ ///
+ public string on { get; set; }
+ ///
+ /// 车辆所在的换电 通道
+ ///
+ public int en { get; set; }
+ ///
+ /// 车牌号
+ ///
+ public string cn { get; set; }
+ ///
+ /// 是否开始换电
+ ///
+ public byte cs { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.carCanStart;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Cloud/Req/ServiceableState.cs b/Service/Cloud/Msg/Cloud/Req/ServiceableState.cs
new file mode 100644
index 0000000..e48dfa1
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Req/ServiceableState.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.Req
+{
+ ///
+ /// 3.2.5.1 后台服务器下发换电站的可服务状态设置
+ ///
+ public class ServiceableState
+ {
+ ///
+ /// 服务状态
+ ///
+ public int st{get;set;}
+
+ public string GetCmd()
+ {
+ return CloudConst.setServiceRes;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Cloud/Req/SetConfigurationParameters.cs b/Service/Cloud/Msg/Cloud/Req/SetConfigurationParameters.cs
new file mode 100644
index 0000000..c6d07bb
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Req/SetConfigurationParameters.cs
@@ -0,0 +1,37 @@
+using Service.Cloud.Common;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Security.Cryptography;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Service.Cloud.Msg.Cloud.Req
+{
+ ///
+ /// 3.2.11.1 后台服务器下发设置配置参数
+ ///
+ public class SetConfigurationParameters
+ {
+ ///
+ /// 可换 soc 阈值
+ ///
+ public char chsoc { get; set; }
+ ///
+ /// 换电收费模型id
+ ///
+ public int eid { get; set; }
+ ///
+ /// 电池运营模型 id
+ ///
+ public string oid { get; set; }
+ ///
+ /// 充电电接模型 id
+ ///
+ public int ceid { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.setConfig;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Cloud/Resp/ReportingDeviceListResp.cs b/Service/Cloud/Msg/Cloud/Resp/ReportingDeviceListResp.cs
new file mode 100644
index 0000000..e0090f7
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Resp/ReportingDeviceListResp.cs
@@ -0,0 +1,28 @@
+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.2.4. 2 后台应答/请求设备列表上报
+ ///
+ public class ReportingDeviceListResp
+ {
+ ///
+ /// 操作类型
+ ///
+ public int ot { get; set; }
+ ///
+ /// 应答结果
+ ///
+ public int re { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.devListRep;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Cloud/Resp/SignInResp.cs b/Service/Cloud/Msg/Cloud/Resp/SignInResp.cs
index 18882c3..b56d9c7 100644
--- a/Service/Cloud/Msg/Cloud/Resp/SignInResp.cs
+++ b/Service/Cloud/Msg/Cloud/Resp/SignInResp.cs
@@ -4,9 +4,21 @@ namespace Service.Cloud.Msg.Cloud.Resp;
public class SignInResp : ICmd
{
+ ///
+ /// 应答结果
+ ///
public int re { get; set; }
+ ///
+ /// 是否需要上次设备列表
+ ///
public int dl_up { get; set; }
+ ///
+ /// 云平台系统时间
+ ///
public DateTime ti { get; set; }
+ ///
+ /// 加密方式
+ ///
public int ew { get; set; }
public string GetCmd()
diff --git a/Service/Cloud/Msg/Cloud/Resp/UploadPowerChangeOrderResp.cs b/Service/Cloud/Msg/Cloud/Resp/UploadPowerChangeOrderResp.cs
new file mode 100644
index 0000000..396c5b7
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Resp/UploadPowerChangeOrderResp.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 UploadPowerChangeOrderResp
+ {
+ ///
+ /// 应答结果
+ ///
+ public int re { get; set; }
+ ///
+ /// 失败原因
+ ///
+ public int fr { get; set; }
+
+ public string GetCmd()
+ {
+ return CloudConst.staSwapRecordRes;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Cloud/Resp/VehicleCertificationResp.cs b/Service/Cloud/Msg/Cloud/Resp/VehicleCertificationResp.cs
new file mode 100644
index 0000000..50ea4f5
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Resp/VehicleCertificationResp.cs
@@ -0,0 +1,52 @@
+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.1.1.2 后台应答换电站车辆认证的结果
+ ///
+ public class VehicleCertificationResp
+ {
+ ///
+ /// 应答结果
+ ///
+ public int re { get; set; }
+ ///
+ /// 认证方式
+ ///
+ public int ty { get; set; }
+ ///
+ /// 车牌号
+ ///
+ public string cn { get; set; }
+ ///
+ /// 卡号
+ ///
+ public string rfid { get; set; }
+ ///
+ /// 车辆识别号
+ ///
+ public string vi { get; set; }
+ ///
+ /// 订单号
+ ///
+ public string on { get; set; }
+ ///
+ /// Mac 地址
+ ///
+ public string mac { get; set; }
+ ///
+ /// 站内外鉴权方式
+ ///
+ public int mode { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.carAuthRes;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Cloud/Resp/VehicleDataReportingResp.cs b/Service/Cloud/Msg/Cloud/Resp/VehicleDataReportingResp.cs
new file mode 100644
index 0000000..a439bff
--- /dev/null
+++ b/Service/Cloud/Msg/Cloud/Resp/VehicleDataReportingResp.cs
@@ -0,0 +1,24 @@
+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.1.3.3 云平台反馈换电车辆数据上报
+ ///
+ public class VehicleDataReportingResp
+ {
+ ///
+ /// 接收结果
+ ///
+ public byte re { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.CardataReportRes;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Req/ReportingDeviceList.cs b/Service/Cloud/Msg/Host/Req/ReportingDeviceList.cs
new file mode 100644
index 0000000..f0ebb73
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Req/ReportingDeviceList.cs
@@ -0,0 +1,80 @@
+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
+{
+ ///
+ /// 3.2.4 换电站上报设备列表
+ ///
+ public class ReportingDeviceList
+ {
+
+ public int ot { get; set; }
+
+ public string sn { get; set; }
+
+ public string vs { get; set; }
+ public List d_info = new();
+
+ public string GetCmd()
+ {
+ return CloudConst.devList;
+ }
+ }
+
+ public class D_INFO
+ {
+ ///
+ /// 设备名称
+ ///
+ public string dn { get; set; }
+ ///
+ /// 设备类型名称
+ ///
+ public string dt { get; set; }
+ ///
+ /// 设备类型代码
+ ///
+ public string dc { get; set; }
+ ///
+ /// 类型代码
+ ///
+ public string tc { get; set; }
+ ///
+ /// 设备流水号
+ ///
+ public string ds { get; set; }
+ ///
+ /// 设备编号
+ ///
+ public string sn { get; set; }
+ ///
+ /// 设备型号
+ ///
+ public string en { get; set; }
+ ///
+ /// 设备硬件版本
+ ///
+ public string hv { get; set; }
+ ///
+ /// 设备软件版本
+ ///
+ public string sv { get; set; }
+ ///
+ /// 生产厂家 manufacturer
+ ///
+ public string mn { get; set; }
+ ///
+ /// 安装位置 install_site
+ ///
+ public string ns { get; set; }
+ ///
+ /// 安装时间
+ ///
+ public string ti { get; set; }
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Req/SignIn.cs b/Service/Cloud/Msg/Host/Req/SignIn.cs
index f5d2a4a..dfd348d 100644
--- a/Service/Cloud/Msg/Host/Req/SignIn.cs
+++ b/Service/Cloud/Msg/Host/Req/SignIn.cs
@@ -4,11 +4,71 @@ namespace Service.Cloud.Msg.Host.Req;
public class SignIn : ICmd
{
+ ///
+ /// 换电站编码
+ ///
public string sn { get; set; }
+ ///
+ /// 供应商识别码
+ ///
public string ky { get; set; }
+ ///
+ /// 换电站类型
+ ///
public string st { get; set; }
+ ///
+ /// 设备型号
+ ///
public string dv { get; set; }
+ ///
+ /// 软件版本
+ ///
public string sv { get; set; }
+ ///
+ /// 换电站服务状态
+ ///
+ public int ss { get; set; }
+ ///
+ /// 换电站配电容量
+ ///
+ public float ca { get; set; }
+ ///
+ /// 设备列表配置版本 号
+ ///
+ public string VS { get; set; }
+ ///
+ /// 充电功率
+ ///
+ public int cp { get; set; }
+ ///
+ /// 换电站基础信息版 本号
+ ///
+ public string bs { get; set; }
+ ///
+ /// 经度
+ ///
+ public string lo { get; set; }
+ ///
+ /// 纬度
+ ///
+ public string la { get; set; }
+ ///
+ /// 换电通道数量
+ ///
+ public int en { get; set; }
+ ///
+ /// 充电机(仓)数量
+ ///
+ public int cn { get; set; }
+ ///
+ /// 电价模型id
+ ///
+ public int eid { get; set; }
+ ///
+ /// 电池运营模型id
+ ///
+ public int oid { get; set; }
+
public string GetCmd()
{
diff --git a/Service/Cloud/Msg/Host/Req/UploadPowerChangeOrder.cs b/Service/Cloud/Msg/Host/Req/UploadPowerChangeOrder.cs
new file mode 100644
index 0000000..20a0a1f
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Req/UploadPowerChangeOrder.cs
@@ -0,0 +1,190 @@
+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.1.1 换电上传换电订单
+ ///
+ public class UploadPowerChangeOrder
+ {
+ ///
+ /// 换电站编码
+ ///
+ public string sn { get; set; }
+ ///
+ /// 换电订单号
+ ///
+ public string son { get; set; }
+ ///
+ /// 订单是否取消
+ ///
+ public byte od { get; set; }
+ ///
+ /// 是否成功换电
+ ///
+ public byte ic { get; set; }
+ ///
+ /// 换电结果
+ ///
+ public byte rs { get; set; }
+ ///
+ /// 失败原因
+ ///
+ public byte fr { get; set; }
+ ///
+ /// 车牌号
+ ///
+ public string cn { get; set; }
+ ///
+ /// 车辆VIN码
+ ///
+ public string vin { get; set; }
+ ///
+ /// rfid卡号
+ ///
+ public string rfid { get; set; }
+ ///
+ /// 所属车队
+ ///
+ public string mC { get; set; }
+ ///
+ /// 出仓安装电池序列号
+ ///
+ public string dbid { get; set; }
+ ///
+ /// 出仓安装电池SOC
+ ///
+ public int dsoc { get; set; }
+ ///
+ /// 取车电池上次换电结算时 的SOC
+ ///
+ public int lsoc { get; set; }
+ ///
+ /// 出仓安装电池的SOE
+ ///
+ public float dsoe { get; set; }
+ ///
+ /// 取车电池上次换电结算时 的 SOE
+ ///
+ public float lsoe { get; set; }
+ ///
+ /// 拆卸入仓电池序列号
+ ///
+ public string ubid { get; set; }
+ ///
+ /// 拆卸入仓电池SOC
+ ///
+ public int usoc { get; set; }
+ ///
+ /// 拆卸入仓电池SOE
+ ///
+ public float usoe { get; set; }
+ ///
+ /// 装上电池行驶里程
+ ///
+ public float tm { get; set; }
+ ///
+ /// 此次换电次序
+ ///
+ public int so { get; set; }
+ ///
+ /// 车牌识别时间(或车辆进 站时间)
+ ///
+ public DateTime ct { get; set; }
+ ///
+ /// 换电开始时刻
+ ///
+ public DateTime st { get; set; }
+ ///
+ /// 换电结来时刻
+ ///
+ public DateTime et { get; set; }
+ ///
+ /// 车辆高开时间
+ ///
+ public DateTime ot { get; set; }
+
+ ///
+ /// 本次换电时同
+ ///
+ public int wt { get; set; }
+ ///
+ /// 出仓安装地仓位号
+ ///
+ public int deno { get; set; }
+ ///
+ /// 拆卸入仓池仓位号
+ ///
+ public int ueno { get; set; }
+ ///
+ /// 车朝总里程
+ ///
+ public float Vtam { get; set; }
+ ///
+ /// 车制累计换电次数
+ ///
+ public int vet { get; set; }
+ ///
+ /// 车辆累计放电量
+ ///
+ public float vtde { get; set; }
+ ///
+ /// 车辆系计回馈电量
+ ///
+ public float vtfe { get; set; }
+ ///
+ /// 车朝累计插枪充电量
+ ///
+ public float vtee { get; set; }
+ ///
+ /// 车制累计综合能耗
+ ///
+ public float vtec { get; set; }
+ ///
+ /// 本次实时放电量
+ ///
+ public float rtde { get; set; }
+ ///
+ /// 上一次结算放电量
+ ///
+ public float Isdc { get; set; }
+ ///
+ /// 本次实时回馈电量
+ ///
+ public float rtfc { get; set; }
+ ///
+ /// 上一才生笙回性中量
+ ///
+ public float Lafc { get; set; }
+ ///
+ /// 本次实时插枪充电量
+ ///
+ public float rtce { get; set; }
+ ///
+ /// 上一次结算插枪充电量
+ ///
+ public float lscc { get; set; }
+ ///
+ /// 本次实时综合能耗
+ ///
+ public float rtec { get; set; }
+ ///
+ /// 上报方式
+ ///
+ public int sfs { get; set; }
+ ///
+ /// 是否是离线订单
+ ///
+ public int sflx { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.staSwapRecord;
+ }
+
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Req/VehicleCertification.cs b/Service/Cloud/Msg/Host/Req/VehicleCertification.cs
new file mode 100644
index 0000000..94b3156
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Req/VehicleCertification.cs
@@ -0,0 +1,61 @@
+using OfficeOpenXml.FormulaParsing.Excel.Functions.Math;
+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
+{
+ ///
+ /// 2.1.1.1 换电站进行车辆认证
+ ///
+ public class VehicleCertification
+ {
+ ///
+ /// 认证方式
+ ///
+ public int ty { get; set; }
+ ///
+ /// 车牌号
+ ///
+ public string cn { get; set; }
+ ///
+ /// rfid卡号
+ ///
+ public string rfid { get; set; }
+ ///
+ /// 车辆识别号
+ ///
+ public string vi { get; set; }
+ ///
+ /// MAC地址
+ ///
+ public string mac { get; set; }
+ ///
+ /// 所有车队
+ ///
+ public string mc { get; set; }
+ ///
+ /// 车辆所在换电通 道
+ ///
+ public int en { get; set; }
+ ///
+ /// 车辆进入的时间
+ ///
+ public DateTime dt { get; set; }
+ ///
+ /// 车牌图片
+ ///
+ public String pic { get; set; }
+ ///
+ /// 站内外鉴权方式
+ ///
+ public int mode { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.carAuth;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Req/VehicleDataReporting.cs b/Service/Cloud/Msg/Host/Req/VehicleDataReporting.cs
new file mode 100644
index 0000000..3a4900b
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Req/VehicleDataReporting.cs
@@ -0,0 +1,128 @@
+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
+{
+ ///
+ /// 换电车辆数据上报
+ ///
+ public class VehicleDataReporting
+ {
+ ///
+ /// 订单号
+ ///
+ public string on { get; set; }
+ ///
+ /// 采集时间
+ ///
+ public DateTime ct { get; set; }
+ ///
+ /// 车牌号
+ ///
+ public string cn { get; set; }
+ ///
+ /// rfid卡号
+ ///
+ public string rfid { get; set; }
+ ///
+ /// 车辆识别码VIN
+ ///
+ public string Vi { get; set; }
+ ///
+ /// 所属车队
+ ///
+ public string mc { get; set; }
+ ///
+ /// 电池序列号
+ ///
+ public string bn { get; set; }
+ ///
+ /// 电池外接充电次 数
+ ///
+ public int ec { get; set; }
+ ///
+ /// 电池SOC
+ ///
+ public float soc { get; set; }
+ ///
+ /// 电池包小计行驶 里程
+ ///
+ public float bskm { get; set; }
+ ///
+ /// 电池包行驶总里 程
+ ///
+ public float btkm { get; set; }
+ ///
+ /// 电池包的SOH
+ ///
+ public float soh { get; set; }
+ ///
+ /// 车辆总里程
+ ///
+ public float vtm { get; set; }
+ ///
+ /// 车辆累计换电次 数
+ ///
+ public int vet { get; set; }
+ ///
+ /// 车辆累计放电量
+ ///
+ public int vtde { get; set; }
+ ///
+ /// 车辆累计回馈电 量
+ ///
+ public int vtfe { get; set; }
+ ///
+ /// 车辆累计插枪充 电量
+ ///
+ public int vtce { get; set; }
+ ///
+ /// 车辆累计综合能 耗
+ ///
+ public int vtec { get; set; }
+ ///
+ /// 本次实时放电量
+ ///
+ public int rtde { get; set; }
+ ///
+ /// 上一次结算放电 量
+ ///
+ public int lsde { get; set; }
+ ///
+ /// 本次实时回馈电 量
+ ///
+ public int rtfc { get; set; }
+ ///
+ /// 上一次结算回馈 电量
+ ///
+ public int lsfc { get; set; }
+ ///
+ /// 本次实时插枪充 电量
+ ///
+ public int rtcc { get; set; }
+ ///
+ /// 上一次结算插枪 充电量
+ ///
+ public int lscc { get; set; }
+ ///
+ /// 本次实时综合能 耗
+ ///
+ public int rtec { get; set; }
+ ///
+ /// 上一次结算综合 能耗
+ ///
+ public int ltfc { get; set; }
+ ///
+ /// 待结算电费电量
+ ///
+ public int wsec { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.CardataReport;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Resp/BatteryOperatingModelResp.cs b/Service/Cloud/Msg/Host/Resp/BatteryOperatingModelResp.cs
new file mode 100644
index 0000000..8749677
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Resp/BatteryOperatingModelResp.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.Host.Resp
+{
+ ///
+ /// 3.2.7.2 换电站应答后台服务器设置换电站的电池运营模型
+ ///
+ public class BatteryOperatingModelResp
+ {
+ ///
+ /// 应答结果
+ ///
+ public int re { get; set; }
+
+ public string GetCmd()
+ {
+ return CloudConst.setOpModelRes;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Resp/BusinessHourResp.cs b/Service/Cloud/Msg/Host/Resp/BusinessHourResp.cs
new file mode 100644
index 0000000..806f038
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Resp/BusinessHourResp.cs
@@ -0,0 +1,24 @@
+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.Resp
+{
+ ///
+ /// 3.2.6.2 换电站应答后台服务器下发后台服务器设置换电站的营业时段
+ ///
+ public class BusinessHourResp
+ {
+ ///
+ /// 应答结果
+ ///
+ public int re { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.setOpTimeRes;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Resp/ChargerElectricityPriceModelResp.cs b/Service/Cloud/Msg/Host/Resp/ChargerElectricityPriceModelResp.cs
new file mode 100644
index 0000000..22a446e
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Resp/ChargerElectricityPriceModelResp.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.Host.Resp
+{
+ ///
+ /// 2 换电站应答后台服务器下发换电站充电电价模型
+ ///
+ public class ChargerElectricityPriceModelResp
+ {
+ ///
+ /// 应答结果
+ ///
+ public int re { get; set; }
+
+ public string GetCmd()
+ {
+ return CloudConst.setChargePriceRes;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Resp/DeliverBasicInformationResp.cs b/Service/Cloud/Msg/Host/Resp/DeliverBasicInformationResp.cs
new file mode 100644
index 0000000..34fa3f5
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Resp/DeliverBasicInformationResp.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.Host.Resp
+{
+ ///
+ /// 3.2.3.2 换电站应答后台服务器下发换电站的基础信息
+ ///
+ public class DeliverBasicInformationResp
+ {
+ ///
+ /// 应答结果
+ ///
+ public int re { get; set; }
+
+ public string GetCmd()
+ {
+ return CloudConst.setStBaseInfoRes;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Resp/ElectricityPriceModelResp.cs b/Service/Cloud/Msg/Host/Resp/ElectricityPriceModelResp.cs
new file mode 100644
index 0000000..467e65a
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Resp/ElectricityPriceModelResp.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.Host.Resp
+{
+ ///
+ /// 3.2.9.1 后台服务器下发换电站充电机的电价模型
+ ///
+ public class ElectricityPriceModelResp
+ {
+ ///
+ /// 应答结果
+ ///
+ public int re { get; set; }
+
+ public string GetCmd()
+ {
+ return CloudConst.setStaPriceRes;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Resp/OfflinePowerOnVehicleDataResp.cs b/Service/Cloud/Msg/Host/Resp/OfflinePowerOnVehicleDataResp.cs
new file mode 100644
index 0000000..630a452
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Resp/OfflinePowerOnVehicleDataResp.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.Host.Resp
+{
+ ///
+ /// 3.2.9.2 换电站应答后台服务器下发离线换电车辆数据
+ ///
+ public class OfflinePowerOnVehicleDataResp
+ {
+ ///
+ /// 应答结果
+ ///
+ public int re { get; set; }
+
+ public string GetCmd()
+ {
+ return CloudConst.setChangeCarDataRes;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Resp/ParameterAcquisitionResp.cs b/Service/Cloud/Msg/Host/Resp/ParameterAcquisitionResp.cs
new file mode 100644
index 0000000..2b1cd04
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Resp/ParameterAcquisitionResp.cs
@@ -0,0 +1,42 @@
+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.Resp
+{
+ ///
+ /// 3.2.11.2 换电站应答后台服务器下发参数获取
+ ///
+ public class ParameterAcquisitionResp
+ {
+ ///
+ /// 应答结果
+ ///
+ public int re { get; set; }
+ ///
+ /// 可换 soc 阈值
+ ///
+ public char chsoc { get; set; }
+ ///
+ /// 换电收费模型 id
+ ///
+ public int eid { get; set; }
+ ///
+ /// 电池运营模型 id
+ ///
+ public string oid { get; set; }
+ ///
+ /// 充电电接模型 id
+ ///
+ public int ceid { get; set; }
+
+
+ public string GetCmd()
+ {
+ return CloudConst.getConfigRes;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Resp/PowerChangeCommandResp.cs b/Service/Cloud/Msg/Host/Resp/PowerChangeCommandResp.cs
new file mode 100644
index 0000000..b0d5f1a
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Resp/PowerChangeCommandResp.cs
@@ -0,0 +1,36 @@
+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.Resp
+{
+ ///
+ /// 2 换电站应答车辆开始换电指令
+ ///
+ public class PowerChangeCommandResp
+ {
+ ///
+ /// 接收结果
+ ///
+ public int re { get; set; }
+ ///
+ /// 车辆所在的换电 通道
+ ///
+ public int en { get; set; }
+ ///
+ /// 订单号
+ ///
+ public string on { get; set; }
+ ///
+ /// 换电请求应答
+ ///
+ public int cs { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.carCanStartRes;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Resp/ServiceableStateResp.cs b/Service/Cloud/Msg/Host/Resp/ServiceableStateResp.cs
new file mode 100644
index 0000000..f9f6923
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Resp/ServiceableStateResp.cs
@@ -0,0 +1,24 @@
+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.Resp
+{
+ ///
+ /// 3.2.5.2 换电站应答后台服务器下发换电站的可服务状态设置
+ ///
+ public class ServiceableStateResp
+ {
+ ///
+ /// 应答结果
+ ///
+ public int re { get; set; }
+ public string GetCmd()
+ {
+ return CloudConst.setServiceRes;
+ }
+ }
+}
diff --git a/Service/Cloud/Msg/Host/Resp/SetConfigurationParametersResp.cs b/Service/Cloud/Msg/Host/Resp/SetConfigurationParametersResp.cs
new file mode 100644
index 0000000..b63fb06
--- /dev/null
+++ b/Service/Cloud/Msg/Host/Resp/SetConfigurationParametersResp.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.Host.Resp
+{
+ ///
+ /// 1.2 换电站应答后台服务器下发参数设置
+ ///
+ public class SetConfigurationParametersResp
+ {
+ ///
+ /// 应答结果
+ ///
+ public int re { get; set; }
+
+ public string GetCmd()
+ {
+ return CloudConst.setConfigRes;
+ }
+ }
+}
diff --git a/Service/Service.csproj b/Service/Service.csproj
index b3a7682..e964686 100644
--- a/Service/Service.csproj
+++ b/Service/Service.csproj
@@ -7,6 +7,15 @@
+
+
+
+
+
+
+
+
+