Selaa lähdekoodia

feat:站点信息接口增加支付类型

Zhenghanjv 3 kuukautta sitten
vanhempi
commit
2f07f77776

+ 5 - 0
Edge.Core/Domain/FccStationInfo/FccStationInfo.cs

@@ -69,6 +69,11 @@ namespace Edge.Core.Domain.FccStationInfo
         /// </summary>
         public string WebSocketPort { get; set; }
 
+        /// <summary>
+        /// 支付方式,逗号隔开
+        /// </summary>
+        public string PaymentType { get; set; }
+
         public ICollection<FccTankInfo.FccTankInfo> FccTankInfo { get; set; }
     }
 }

+ 7 - 1
Edge.Core/Domain/FccStationInfo/Input/StationInfoInput.cs

@@ -64,6 +64,11 @@ namespace Edge.Core.Domain.FccStationInfo.Input
         /// </summary>
         public string? WebSocketPort { get; set; }
 
+        /// <summary>
+        /// 支付方式,逗号隔开
+        /// </summary>
+        public string PaymentType { get; set; }
+
         public FccStationInfo? ToComponent()
         {
             if (IsNotNorm()) return null;
@@ -80,7 +85,8 @@ namespace Edge.Core.Domain.FccStationInfo.Input
                 CloudService = this.CloudService,
                 MqttService = this.MqttService,
                 IcardService = this.IcardService != null ? this.IcardService : "",
-                WebSocketPort = this.WebSocketPort
+                WebSocketPort = this.WebSocketPort,
+                PaymentType = this.PaymentType
             };
         }
 

+ 5 - 4
Edge.Core/Domain/FccStationInfo/Output/StationInfoOutput.cs

@@ -36,6 +36,7 @@ namespace Edge.Core.Domain.FccStationInfo.Output
             this.MqttService = fccStationInfo.MqttService;
             this.IcardService = fccStationInfo.IcardService;
             this.WebSocketPort = fccStationInfo.WebSocketPort;
+            this.PaymentType = fccStationInfo.PaymentType;
         }
         /// <summary>
         /// id
@@ -93,13 +94,13 @@ namespace Edge.Core.Domain.FccStationInfo.Output
         public string? IcardService { get; set; }
 
         /// <summary>
-        /// 本地 fcc 与油机 socket 通讯端口
+        /// 本地 fcc 与 fcc 页面 webSocket 端口
         /// </summary>
-        public string ServicePort { get; set; }
+        public string WebSocketPort { get; set; }
 
         /// <summary>
-        /// 本地 fcc 与 fcc 页面 webSocket 端口
+        /// 支付方式,逗号隔开
         /// </summary>
-        public string WebSocketPort { get; set; }
+        public string PaymentType { get; set; }
     }
 }

+ 1 - 0
src/FccLife.Web/Repositories/FccStationInfo/StationRepository.cs

@@ -86,6 +86,7 @@ namespace FccLite.Web.Repositories.FccStationInfo
                 station.MqttService = stationInfoInput.MqttService;
                 station.IcardService = stationInfoInput.IcardService != null ? stationInfoInput.IcardService : "";
                 station.WebSocketPort = stationInfoInput.WebSocketPort;
+                station.PaymentType = stationInfoInput.PaymentType;
                 _dbContext.SaveChanges();
                 return station;
             }