using System.Text.Json.Serialization; namespace CoreAgent.Domain.Models.System; /// /// 命令模板配置 /// public class CommandTemplateConfig { /// /// 命令类型 /// [JsonPropertyName("type")] public NetworkCommandType Type { get; set; } /// /// 命令模板 /// [JsonPropertyName("template")] public string Template { get; set; } /// /// 超时时间(毫秒) /// [JsonPropertyName("timeout")] public int Timeout { get; set; } /// /// 是否启用 /// [JsonPropertyName("isEnabled")] public bool IsEnabled { get; set; } = true; /// /// 是否需要返回结果 /// [JsonPropertyName("needReturnResult")] public bool NeedReturnResult { get; set; } = false; /// /// 是否需要后台执行 /// [JsonPropertyName("needBackgroundExecution")] public bool NeedBackgroundExecution { get; set; } = false; /// /// 命令是否可以被终止 /// [JsonPropertyName("canBeKilled")] public bool CanBeKilled { get; set; } = false; /// /// 是否需要带参数 /// [JsonPropertyName("hasParameters")] public bool HasParameters { get; set; } = false; }