27 lines
877 B
C#
27 lines
877 B
C#
using Tnsu.ApprovalRoute.Domain.Enums;
|
|
|
|
namespace Tnsu.ApprovalRoute.Application.TemplateRoutes;
|
|
|
|
public sealed record ResolvedRouteStepDto(
|
|
int Id,
|
|
int OrderNo,
|
|
string? ExecutorEmail,
|
|
string? Position,
|
|
bool AllowReassignToOtherApprovers,
|
|
string? Warning = null);
|
|
|
|
public sealed record ResolveTemplateRouteResultDto(
|
|
int RouteId,
|
|
bool RequiresControl,
|
|
IReadOnlyList<ResolvedRouteStepDto> Steps);
|
|
|
|
/// <summary>Значение поля списка SharePoint (field_name шага) для проверки условий шагов при resolve.</summary>
|
|
public sealed record ResolveFieldValueDto(string FieldName, string Value);
|
|
|
|
public sealed record ResolveTemplateRouteRequest(
|
|
int RequestTypeId,
|
|
string? UserEmail,
|
|
Guid? ProjectId,
|
|
RouteStepStatus Status,
|
|
IReadOnlyList<ResolveFieldValueDto>? FieldValues = null);
|