erp-platform/api/src/Kurs.Platform.Application.Contracts/Reports/CreateReportTemplateDto.cs

53 lines
1.2 KiB
C#
Raw Normal View History

2025-08-15 09:19:20 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Kurs.Platform.Reports
{
public class CreateReportTemplateDto
{
[Required]
[StringLength(256)]
public string Name { get; set; }
[StringLength(1000)]
public string Description { get; set; }
[Required]
public string HtmlContent { get; set; }
[StringLength(100)]
public string Category { get; set; }
public List<string> Tags { get; set; }
public List<CreateReportParameterDto> Parameters { get; set; }
public CreateReportTemplateDto()
{
Tags = new List<string>();
Parameters = new List<CreateReportParameterDto>();
}
}
public class CreateReportParameterDto
{
[Required]
[StringLength(100)]
public string Name { get; set; }
[StringLength(200)]
public string Placeholder { get; set; }
public ReportParameterType Type { get; set; }
[StringLength(500)]
public string DefaultValue { get; set; }
public bool Required { get; set; }
[StringLength(1000)]
public string Description { get; set; }
}
}