对接前端

This commit is contained in:
xiaolipro 2024-09-12 16:25:47 +08:00
parent 92bb68f854
commit 4e334f2869
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
namespace SJZY.Track.Application.Contract.Dtos.TrackContents;
namespace SJZY.Track.Application.Contract.Dtos.TrackContents;
public class GetPageTrackContentInput : PageInfoInput
{
@ -9,7 +9,7 @@ public class GetPageTrackContentInput : PageInfoInput
/// <summary>
/// 关键字
/// </summary>
/// </summary>
public string? Keywords { get; set; }
/// <summary>
@ -65,6 +65,11 @@ public class GetTrackContentListDto
/// </summary>
public string TrackFlag { get; set; }
/// <summary>
/// 是否对外
/// </summary>
public bool IsExternal { get; set; }
/// <summary>
/// 创建时间
/// </summary>

View File

@ -179,6 +179,7 @@ public class ForewarningHelper
EndTrackStatusId = x.EndTrackStatusId,
EndTrackStatus = statusDic.TryGetValue(x.EndTrackStatusId, out var end) ? end : "",
NotifyUserIds = x.NotifyUserId.Split(',').Select(int.Parse).ToList(),
NotifyUsers = x.NotifyUser.Split(',').ToList(),
NotifyModes = x.NotifyMode.Split(',').Select(Enum.Parse<NotifyMode>).ToList(),
}).ToList(),
WarningFactors = warning.WarningFactors.Select(x => new WarningFactorWithIdDto