36 lines
980 B
C#
36 lines
980 B
C#
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; }
|
|
public Guid CategoryId { get; set; }
|
|
public List<string> Tags { get; set; }
|
|
public List<CreateReportParameterDto> Parameters { get; set; }
|
|
|
|
public CreateReportTemplateDto()
|
|
{
|
|
Tags = [];
|
|
Parameters = [];
|
|
}
|
|
}
|
|
|
|
public class CreateReportParameterDto
|
|
{
|
|
[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; }
|
|
}
|
|
}
|