feat(dal,core): Перенесены оставшиеся объекты из dal в core.
This commit is contained in:
36
PARR.Domain/DTOs/Matching/MatchingStatus.cs
Normal file
36
PARR.Domain/DTOs/Matching/MatchingStatus.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using PARR.Domain.Cache.Models;
|
||||
|
||||
namespace PARR.Domain.DTOs.Matching
|
||||
{
|
||||
/// <summary>
|
||||
/// Статус matching`a
|
||||
/// </summary>
|
||||
public class MatchingStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// В целом по искомому объекту, идет ли matching
|
||||
/// </summary>
|
||||
public bool IsMatchingObject => IsMatchingJobs || IsMatchingJobGroups;
|
||||
|
||||
/// <summary>
|
||||
/// Идет ли мэтчинг по Jobs
|
||||
/// </summary>
|
||||
public bool IsMatchingJobs => DetailsJobs?.Any() ?? false;
|
||||
|
||||
/// <summary>
|
||||
/// Идет ли мэтчинг по JobGroups
|
||||
/// </summary>
|
||||
public bool IsMatchingJobGroups => DetailsJobGroups?.Any() ?? false;
|
||||
|
||||
/// <summary>
|
||||
/// Детально из КЭШ по Jobs
|
||||
/// </summary>
|
||||
public List<MatchingStatusItem>? DetailsJobs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Детально из КЭШ по JobGroups
|
||||
/// </summary>
|
||||
public List<MatchingStatusItem>? DetailsJobGroups { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
11
PARR.Domain/DTOs/Shortcode/ShortcodeInfoDto.cs
Normal file
11
PARR.Domain/DTOs/Shortcode/ShortcodeInfoDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using PARR.Domain.Enums;
|
||||
|
||||
namespace PARR.Domain.DTOs.Shortcode
|
||||
{
|
||||
public class ShortcodeInfoDto
|
||||
{
|
||||
public required string Shortcode { get; set; }
|
||||
public required string Description { get; set; }
|
||||
public ShortcodeTypeEnum Type { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user