feat(api): расширен респонс WorkResponse до WorkWithTnkResponse, добавлена полная иерархия тнк. В Work.GetAll добавлен параметр для загрузки с иерархией.
This commit is contained in:
10
PARR.API/Contracts/V1/Requests/Queries/WorkGetAllQuery.cs
Normal file
10
PARR.API/Contracts/V1/Requests/Queries/WorkGetAllQuery.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace PARR.API.Contracts.V1.Requests.Queries
|
||||
{
|
||||
public class WorkGetAllQuery
|
||||
{
|
||||
/// <summary>
|
||||
/// С иерархией до процесса
|
||||
/// </summary>
|
||||
public bool AllParents { get; set; } = false;
|
||||
}
|
||||
}
|
||||
@@ -10,4 +10,9 @@
|
||||
|
||||
public Guid ProcessId { get; set; }
|
||||
}
|
||||
|
||||
public class SubprocessWithProcessResponse : SubprocessResponse
|
||||
{
|
||||
public ProcessResponse? Process { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,4 +10,9 @@
|
||||
|
||||
public Guid SubprocessId { get; set; }
|
||||
}
|
||||
|
||||
public class TnkWithSubprocessResponse : TnkResponse
|
||||
{
|
||||
public SubprocessWithProcessResponse? Subprocess { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,4 +10,9 @@
|
||||
|
||||
public Guid TnkId { get; set; }
|
||||
}
|
||||
|
||||
public class WorkWithTnkResponse : WorkResponse
|
||||
{
|
||||
public TnkWithSubprocessResponse? Tnk { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user