feat(dal): Реализован сервис UnitFilterService для получения Unit, для которых требуется создать или уже создан шаблон по Job.Id
This commit is contained in:
9
PARR.DAL/DomainServices/Interfaces/IShortcodesService.cs
Normal file
9
PARR.DAL/DomainServices/Interfaces/IShortcodesService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace PARR.DAL.DomainServices.Interfaces
|
||||
{
|
||||
public interface IShortcodesService
|
||||
{
|
||||
Task<string> ApplyShortcodesAsync(string str, Guid unitId, Guid jobId);
|
||||
|
||||
bool isAnyShortcodes(string str);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using PARR.DAL.Models.Job;
|
||||
using PARR.DAL.Models.Unit;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PARR.DAL.DomainServices.Interfaces
|
||||
{
|
||||
public interface ITemplateNameGeneratorService
|
||||
{
|
||||
Task<string> GetTemplateNameAsync(Guid jobId, Guid unitId);
|
||||
}
|
||||
}
|
||||
27
PARR.DAL/DomainServices/Interfaces/IUnitFilterService.cs
Normal file
27
PARR.DAL/DomainServices/Interfaces/IUnitFilterService.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace PARR.DAL.DomainServices.Interfaces
|
||||
{
|
||||
public interface IUnitFilterService
|
||||
{
|
||||
/// <summary>
|
||||
/// Получить все Unit.Id, для которых должны быть созданы Template
|
||||
/// </summary>
|
||||
/// <param name="jobId">Id работы</param>
|
||||
/// <returns></returns>
|
||||
Task<IEnumerable<Guid>?> GetUnitsIdByJobFilterAsync(Guid jobId);
|
||||
|
||||
/// <summary>
|
||||
/// Получить все Unit.Id, для которых не были созданы Template
|
||||
/// </summary>
|
||||
/// <param name="jobId">Id работы</param>
|
||||
/// <returns></returns>
|
||||
Task<IEnumerable<Guid>?> GetUnitsIdForNotExistTemplatesByJobFilterAsync(Guid jobId);
|
||||
|
||||
/// <summary>
|
||||
/// Получить все Unit.Id, для которых были созданы Template
|
||||
/// </summary>
|
||||
/// <param name="jobId">Id работы</param>
|
||||
/// <returns></returns>
|
||||
Task<IEnumerable<Guid>?> GetUnitsIdForExistTemplatesByJobFilterAsync(Guid jobId);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user