55 lines
1.3 KiB
C#
55 lines
1.3 KiB
C#
|
|
using System;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
|
||
|
|
namespace Kurs.Platform.Reports
|
||
|
|
{
|
||
|
|
public class UpdateReportTemplateDto
|
||
|
|
{
|
||
|
|
[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<UpdateReportParameterDto> Parameters { get; set; }
|
||
|
|
|
||
|
|
public UpdateReportTemplateDto()
|
||
|
|
{
|
||
|
|
Tags = new List<string>();
|
||
|
|
Parameters = new List<UpdateReportParameterDto>();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
public class UpdateReportParameterDto
|
||
|
|
{
|
||
|
|
public Guid? Id { get; set; }
|
||
|
|
|
||
|
|
[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; }
|
||
|
|
}
|
||
|
|
}
|