Основные reponses
This commit is contained in:
9
PARR.API/Contracts/V1/Responses/ApplicationResponse.cs
Normal file
9
PARR.API/Contracts/V1/Responses/ApplicationResponse.cs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
namespace PARR.API.Contracts.V1.Responses
|
||||||
|
{
|
||||||
|
public class ApplicationResponse
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
|
||||||
|
public required string Name { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
17
PARR.API/Contracts/V1/Responses/HostResponse.cs
Normal file
17
PARR.API/Contracts/V1/Responses/HostResponse.cs
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
namespace PARR.API.Contracts.V1.Responses
|
||||||
|
{
|
||||||
|
public class HostResponse
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
|
||||||
|
public string Ek { get; set; }
|
||||||
|
|
||||||
|
public required string IP { get; set; }
|
||||||
|
|
||||||
|
public string? Status { get; set; }
|
||||||
|
|
||||||
|
public string? WorkGroup { get; set; }
|
||||||
|
|
||||||
|
public string? ResponseArea { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
11
PARR.API/Contracts/V1/Responses/ProcessResponse.cs
Normal file
11
PARR.API/Contracts/V1/Responses/ProcessResponse.cs
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
namespace PARR.API.Contracts.V1.Responses
|
||||||
|
{
|
||||||
|
public class ProcessResponse
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
|
||||||
|
public required string Name { get; set; }
|
||||||
|
|
||||||
|
public int EsppId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
13
PARR.API/Contracts/V1/Responses/SubprocessResponse.cs
Normal file
13
PARR.API/Contracts/V1/Responses/SubprocessResponse.cs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
namespace PARR.API.Contracts.V1.Responses
|
||||||
|
{
|
||||||
|
public class SubprocessResponse
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
|
||||||
|
public required string Name { get; set; }
|
||||||
|
|
||||||
|
public int EsppId { get; set; }
|
||||||
|
|
||||||
|
public Guid ProcessId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
13
PARR.API/Contracts/V1/Responses/TnkResponse.cs
Normal file
13
PARR.API/Contracts/V1/Responses/TnkResponse.cs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
namespace PARR.API.Contracts.V1.Responses
|
||||||
|
{
|
||||||
|
public class TnkResponse
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
|
||||||
|
public required string Name { get; set; }
|
||||||
|
|
||||||
|
public int EsppId { get; set; }
|
||||||
|
|
||||||
|
public Guid SubprocessId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
21
PARR.API/Contracts/V1/Responses/WorkResponse.cs
Normal file
21
PARR.API/Contracts/V1/Responses/WorkResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
namespace PARR.API.Contracts.V1.Responses
|
||||||
|
{
|
||||||
|
public class WorkResponse
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
|
||||||
|
public required string Name { get; set; }
|
||||||
|
|
||||||
|
public int EsppId { get; set; }
|
||||||
|
|
||||||
|
public Guid TnkId { get; set; }
|
||||||
|
|
||||||
|
public required string TemplateDuration { get; set; }
|
||||||
|
|
||||||
|
public required string ShortDescription { get; set; }
|
||||||
|
|
||||||
|
public required string FullDescription { get; set; }
|
||||||
|
|
||||||
|
public required string Solution { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -48,6 +48,17 @@ namespace PARR.API.MappingProfiles
|
|||||||
|
|
||||||
CreateMap<StatusTemplate, StatusTemplateResponse>();
|
CreateMap<StatusTemplate, StatusTemplateResponse>();
|
||||||
|
|
||||||
|
|
||||||
|
CreateMap<Process, ProcessResponse>();
|
||||||
|
CreateMap<Subprocess, SubprocessResponse>();
|
||||||
|
CreateMap<Tnk, TnkResponse>();
|
||||||
|
CreateMap<Work, WorkResponse>();
|
||||||
|
|
||||||
|
|
||||||
|
CreateMap<Application, ApplicationResponse>();
|
||||||
|
|
||||||
|
CreateMap<DAL.Models.Host, HostResponse>();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,11 +9,15 @@ namespace PARR.DAL.Models
|
|||||||
{
|
{
|
||||||
[Key]
|
[Key]
|
||||||
public Guid Id { get; set; }
|
public Guid Id { get; set; }
|
||||||
|
|
||||||
public DateTimeOffset DateCreated { get; set; }
|
public DateTimeOffset DateCreated { get; set; }
|
||||||
|
|
||||||
public DateTimeOffset? DateModified { get; set; }
|
public DateTimeOffset? DateModified { get; set; }
|
||||||
|
|
||||||
public required string Name { get; set; }
|
public required string Name { get; set; }
|
||||||
|
|
||||||
public Guid ApplicationTypeId { get; set; }
|
public Guid ApplicationTypeId { get; set; }
|
||||||
|
|
||||||
[ForeignKey(nameof(ApplicationTypeId))]
|
[ForeignKey(nameof(ApplicationTypeId))]
|
||||||
public ApplicationType? ApplicationType { get; set; }
|
public ApplicationType? ApplicationType { get; set; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user