mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 06:03:12 +00:00
38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
using Data.SeaHavenIndustries.Enums;
|
|
|
|
namespace SeaHaven.Services.DTOs
|
|
{
|
|
public class ServiceDto
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; } = "";
|
|
public string Trade { get; set; } = "";
|
|
public string IconKey { get; set; } = "";
|
|
public bool RequiresCompletionDocument { get; set; }
|
|
public LinkedTemplateSummaryDto? CompletionDocTemplate { get; set; }
|
|
public bool IsActive { get; set; }
|
|
public List<WorkOrderType> SupportedWorkOrderTypes { get; set; } = new();
|
|
}
|
|
|
|
public class LinkedTemplateSummaryDto
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; } = "";
|
|
}
|
|
|
|
public class ServiceInput
|
|
{
|
|
public string? Name { get; set; }
|
|
public string? Trade { get; set; }
|
|
public string? IconKey { get; set; }
|
|
public bool RequiresCompletionDocument { get; set; }
|
|
public int? CompletionDocTemplateId { get; set; }
|
|
public List<WorkOrderType>? SupportedWorkOrderTypes { get; set; }
|
|
}
|
|
|
|
public class ServicesRegistryValidationErrorDto
|
|
{
|
|
public string Code { get; set; } = "";
|
|
public string Message { get; set; } = "";
|
|
}
|
|
}
|