Files
BTCPayServerPlugins/Plugins/BTCPayServer.Plugins.DynamicReports/DynamicReportsSettings.cs
2024-03-25 10:38:26 +01:00

25 lines
567 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace BTCPayServer.Plugins.DynamicReports;
public class DynamicReportsSettings
{
public Dictionary<string, DynamicReportSetting> Reports { get; set; } = new();
public class DynamicReportSetting
{
[Required]
public string Sql { get; set; }
public bool AllowForNonAdmins { get; set; }
}
}
public class DynamicReportViewModel:DynamicReportsSettings.DynamicReportSetting
{
[Required]
public string Name { get; set; }
}