Wonky.Client/Wonky.Entity/DTO/KrvProductCreateDto.cs

18 lines
929 B
C#
Raw Permalink Normal View History

2023-04-08 17:46:26 +02:00
using System.ComponentModel.DataAnnotations;
namespace Wonky.Entity.DTO;
public class KrvProductCreateDto
{
[Required] public KrvProductTexts ProductTexts { get; set; } = new();
[Required] public KrvWasteTexts WasteTexts { get; set; } = new();
[Required] [MaxLength(128)] public string MaskVariantId { get; set; } = "";
[Required] [MaxLength(128)] public string GogglesVariantId { get; set; } = "";
[Required] [MaxLength(128)] public string GlovesVariantId { get; set; } = "";
[Required] [MaxLength(50)] public string ProductCategoryEnum { get; set; } = "";
public KrvKapvJsonTexts KapvTexts { get; set; } = new();
[MaxLength(255)] public string PictureLink { get; set; } = "";
[MaxLength(255)] public string InstructionLink { get; set; } = "";
[MaxLength(255)] public string InformationLink { get; set; } = "";
[MaxLength(255)] public string PropertiesLink { get; set; } = "";
}