erp-platform/api/src/Kurs.Platform.Application.Contracts/Reports/UpdateReportTemplateDto.cs
2025-10-08 14:31:29 +03:00

37 lines
909 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Kurs.Platform.Reports;
public class UpdateReportTemplateDto
{
[Required]
public string Name { get; set; }
public string Description { get; set; }
[Required]
public string HtmlContent { get; set; }
public Guid CategoryId { get; set; }
public List<string> Tags { get; set; }
public List<UpdateReportParameterDto> Parameters { get; set; }
public UpdateReportTemplateDto()
{
Tags = [];
Parameters = [];
}
}
public class UpdateReportParameterDto
{
public Guid? Id { get; set; }
[Required]
public string Name { get; set; }
public string Placeholder { get; set; }
public string Type { get; set; }
public string DefaultValue { get; set; }
public bool Required { get; set; }
public string Description { get; set; }
}