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

38 lines
909 B
C#
Raw Normal View History

2025-08-15 09:19:20 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
2025-10-08 11:31:29 +00:00
namespace Kurs.Platform.Reports;
public class UpdateReportTemplateDto
2025-08-15 09:19:20 +00:00
{
2025-10-08 11:31:29 +00:00
[Required]
public string Name { get; set; }
public string Description { get; set; }
2025-08-15 09:19:20 +00:00
2025-10-08 11:31:29 +00:00
[Required]
public string HtmlContent { get; set; }
public Guid CategoryId { get; set; }
public List<string> Tags { get; set; }
public List<UpdateReportParameterDto> Parameters { get; set; }
2025-08-15 09:19:20 +00:00
2025-10-08 11:31:29 +00:00
public UpdateReportTemplateDto()
{
Tags = [];
Parameters = [];
2025-08-15 09:19:20 +00:00
}
2025-10-08 11:31:29 +00:00
}
2025-08-15 09:19:20 +00:00
2025-10-08 11:31:29 +00:00
public class UpdateReportParameterDto
{
public Guid? Id { get; set; }
2025-08-15 09:19:20 +00:00
2025-10-08 11:31:29 +00:00
[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; }
2025-08-15 09:19:20 +00:00
}