From cde6ad77663a80d78d77568428a6287b53347716 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期四, 19 三月 2026 17:19:55 +0800
Subject: [PATCH] feat: 新增API路由缓存预热并完善机器人消息日志
---
Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Entities/InstanceConfig.cs | 30 +++++++++++++++++-------------
1 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Entities/InstanceConfig.cs b/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Entities/InstanceConfig.cs
index a4fb716..91a7923 100644
--- a/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Entities/InstanceConfig.cs
+++ b/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Entities/InstanceConfig.cs
@@ -1,53 +1,57 @@
-using System.Text.Json.Serialization;
+锘縰sing System.Text.Json.Serialization;
using WIDESEAWCS_S7Simulator.Core.Enums;
namespace WIDESEAWCS_S7Simulator.Core.Entities
{
/// <summary>
- /// S7鏈嶅姟鍣ㄥ疄渚嬮厤缃�
+ /// S7閺堝秴濮熼崳銊ョ杽娓氬鍘ょ純?
/// </summary>
public class InstanceConfig
{
/// <summary>
- /// 瀹炰緥鍞竴鏍囪瘑
+ /// 鐎圭偘绶ラ崬顖欑閺嶅洩鐦�
/// </summary>
- [JsonPropertyName("id")]
+ //[JsonPropertyName("id")]
public string Id { get; set; } = string.Empty;
/// <summary>
- /// 瀹炰緥鍚嶇О
+ /// 鐎圭偘绶ラ崥宥囆�
/// </summary>
- [JsonPropertyName("name")]
+ //[JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;
/// <summary>
- /// PLC鍨嬪彿
+ /// PLC閸ㄥ褰�
/// </summary>
- [JsonPropertyName("plcType")]
+ //[JsonPropertyName("plcType")]
public SiemensPLCType PLCType { get; set; }
/// <summary>
- /// 鐩戝惉绔彛
+ /// 閻╂垵鎯夌粩顖氬經
/// </summary>
- [JsonPropertyName("port")]
+ //[JsonPropertyName("port")]
public int Port { get; set; }
/// <summary>
- /// HSL婵�娲荤爜
+ /// HSL濠碘偓濞茶崵鐖�
/// </summary>
[JsonPropertyName("activationKey")]
public string ActivationKey { get; set; } = string.Empty;
/// <summary>
- /// 鏄惁鑷姩鍚姩
+ /// 閺勵垰鎯侀懛顏勫З閸氼垰濮�
/// </summary>
[JsonPropertyName("autoStart")]
public bool AutoStart { get; set; }
+ [JsonPropertyName("protocolTemplateId")]
+ public string ProtocolTemplateId { get; set; } = string.Empty;
+
/// <summary>
- /// 鍐呭瓨鍖哄煙閰嶇疆
+ /// 閸愬懎鐡ㄩ崠鍝勭厵闁板秶鐤�
/// </summary>
[JsonPropertyName("memoryConfig")]
public MemoryRegionConfig MemoryConfig { get; set; } = new();
}
}
+
--
Gitblit v1.9.3