feat(all): исправления после добавления таблицы WorkGroup. Доработана логика генерации шаблонов с учетом рабочих групп
This commit is contained in:
@@ -107,6 +107,14 @@
|
||||
public const string getParam = "{id}";
|
||||
}
|
||||
|
||||
public static class WorkGroup
|
||||
{
|
||||
public const string GetAll = Base + "/work-groups/";
|
||||
public const string Get = Base + "/work-groups/" + getParam;
|
||||
|
||||
public const string getParam = "{id}";
|
||||
}
|
||||
|
||||
public static class RobotHistoryLevel
|
||||
{
|
||||
public const string GetAll = Base + "/robot-history-levels/";
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
//public required ScheduleRequest Schedule { get; set; }
|
||||
|
||||
public List<EsppSchValueRequest> Schedule { get; set; } = new List<EsppSchValueRequest>();
|
||||
|
||||
public List<Guid> WorkGroups { get; set; } = new List<Guid>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
10
PARR.API/Contracts/V1/Requests/Queries/WorkGroupQuery.cs
Normal file
10
PARR.API/Contracts/V1/Requests/Queries/WorkGroupQuery.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace PARR.API.Contracts.V1.Requests.Queries
|
||||
{
|
||||
public class WorkGroupQuery
|
||||
{
|
||||
/// <summary>
|
||||
/// Поиск по имени, например "АСУ"
|
||||
/// </summary>
|
||||
public string? Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -31,6 +31,8 @@
|
||||
public int TemplatesCount { get; set; }
|
||||
|
||||
public ApplicationInWorkScheduleResponse? Schedule { get; set; }
|
||||
|
||||
public List<WorkGroupResponse>? WorkGroups { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
|
||||
public string? Status { get; set; }
|
||||
|
||||
public string? WorkGroup { get; set; }
|
||||
public string? WorkGroupName { get; set; }
|
||||
|
||||
public WorkGroupResponse? WorkGroup { get; set; }
|
||||
|
||||
public string? ResponseArea { get; set; }
|
||||
|
||||
|
||||
9
PARR.API/Contracts/V1/Responses/WorkGroupResponse.cs
Normal file
9
PARR.API/Contracts/V1/Responses/WorkGroupResponse.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class WorkGroupResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public required string Name { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user