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

37 lines
980 B
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]
public string Name { get; set; }
public string Description { get; set; }
[Required]
public string HtmlContent { get; set; }
2025-10-08 11:31:29 +00:00
public Guid CategoryId { get; set; }
2025-08-15 09:19:20 +00:00
public List<string> Tags { get; set; }
public List<CreateReportParameterDto> Parameters { get; set; }
public CreateReportTemplateDto()
{
2025-08-15 12:21:22 +00:00
Tags = [];
Parameters = [];
2025-08-15 09:19:20 +00:00
}
}
public class CreateReportParameterDto
{
[Required]
public string Name { get; set; }
public string Placeholder { get; set; }
2025-08-15 12:21:22 +00:00
public string Type { get; set; }
2025-08-15 09:19:20 +00:00
public string DefaultValue { get; set; }
public bool Required { get; set; }
public string Description { get; set; }
}
}