erp-platform/api/src/Erp.Platform.Application.Contracts/Reports/UpdateReportTemplateDto.cs
2025-11-11 22:49:52 +03:00

38 lines
912 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Erp.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; }
}