conn:预警返回新增字段--是否启用

This commit is contained in:
xiaolipro 2024-09-30 17:00:23 +08:00
parent 29624edec3
commit 7cebc4ee37
2 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,11 @@ public class WarningPageOutput
/// </summary> /// </summary>
public string Name { get; set; } = null!; public string Name { get; set; } = null!;
/// <summary>
/// 是否启用,默认否
/// </summary>
public bool IsEnable { get; set; }
/// <summary> /// <summary>
/// 更新时间 /// 更新时间
/// </summary> /// </summary>

View File

@ -53,6 +53,7 @@ public class WarningRepository : BasicRepository<WarningEntity>, IWarningReposit
SubSystem = b.CnName, SubSystem = b.CnName,
Custom = c.Name, Custom = c.Name,
Name = a.Name, Name = a.Name,
IsEnable = a.IsEnable,
UpdateTime = a.UpdateTime UpdateTime = a.UpdateTime
}) })
.ToPagedListAsync(input.PageIndex, input.PageSize); .ToPagedListAsync(input.PageIndex, input.PageSize);