feat(dal,api): IMatchingStatusService - управление статусами matcher`a. Отображение статусов в АПИ, нельзя повторно из апи отправить задание мэтчеру если сейчас идет matching
This commit is contained in:
27
PARR.DAL/Cache/Models/MatchingStatusItem.cs
Normal file
27
PARR.DAL/Cache/Models/MatchingStatusItem.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using PARR.Constants;
|
||||
using PARR.DAL.Cache.Models.Base;
|
||||
|
||||
namespace PARR.DAL.Cache.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// КЭШ модель, состояние matching`a
|
||||
/// </summary>
|
||||
public class MatchingStatusItem : IBaseCache<MatchingStatusItemDto>
|
||||
{
|
||||
public required MatchingStatusItemDto Data { get; set; }
|
||||
|
||||
public DateTimeOffset Timestamp { get; set; }
|
||||
|
||||
public required string Source { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class MatchingStatusItemDto
|
||||
{
|
||||
public DateTimeOffset DateStart { get; set; }
|
||||
|
||||
public required TemplateMatcherActionEnum Action { get; set; }
|
||||
|
||||
public string? Comment { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user