feat(api,dal): удалена старая таблица Works. Переделаны запросы в API из в Works в Jobs
This commit is contained in:
@@ -353,7 +353,7 @@ namespace PARR.API.Contracts.V1
|
||||
public const string GetAll = Base + "/tnks/";
|
||||
public const string Get = Base + "/tnks/" + getParam;
|
||||
|
||||
public const string GetWorks = Base + "/tnks/" + getParam + "/works";
|
||||
public const string GetJobs = Base + "/tnks/" + getParam + "/jobs";
|
||||
|
||||
public const string Delete = Base + "/tnks/" + getParam;
|
||||
public const string Create = Base + "/tnks/";
|
||||
@@ -362,16 +362,16 @@ namespace PARR.API.Contracts.V1
|
||||
public const string getParam = "{id}";
|
||||
}
|
||||
|
||||
public static class Work
|
||||
{
|
||||
public const string GetAll = Base + "/works/";
|
||||
public const string Get = Base + "/works/" + getParam;
|
||||
public const string Delete = Base + "/works/" + getParam;
|
||||
public const string Create = Base + "/works/";
|
||||
public const string Update = Base + "/works/" + getParam;
|
||||
//public static class Work
|
||||
//{
|
||||
// public const string GetAll = Base + "/works/";
|
||||
// public const string Get = Base + "/works/" + getParam;
|
||||
// public const string Delete = Base + "/works/" + getParam;
|
||||
// public const string Create = Base + "/works/";
|
||||
// public const string Update = Base + "/works/" + getParam;
|
||||
|
||||
public const string getParam = "{id}";
|
||||
}
|
||||
// public const string getParam = "{id}";
|
||||
//}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -13,5 +13,10 @@ namespace PARR.API.Contracts.V1.Requests.Queries
|
||||
/// Поиск по Id группы работ
|
||||
/// </summary>
|
||||
public Guid? GroupId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Поиск по Id ТНК
|
||||
/// </summary>
|
||||
public Guid? TnkId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
public string? AgentScript { get; set; }
|
||||
|
||||
public WorkResponse? Work { get; set; }
|
||||
//public WorkResponse? Work { get; set; }
|
||||
|
||||
public int TemplatesCount { get; set; }
|
||||
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class WorkResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public required string Name { get; set; }
|
||||
|
||||
public required string TemplateNameMask { get; set; }
|
||||
|
||||
public string? TemplateSuffix { get; set; }
|
||||
|
||||
public int EsppId { get; set; }
|
||||
|
||||
public Guid TnkId { get; set; }
|
||||
}
|
||||
|
||||
public class WorkWithTnkResponse : WorkResponse
|
||||
{
|
||||
public TnkWithSubprocessResponse? Tnk { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user