dynamic reports

This commit is contained in:
Kukks
2023-11-10 12:40:08 +01:00
parent 9e8d694209
commit b77fa3307e
12 changed files with 775 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace BTCPayServer.Plugins.DynamicReports;
public class DynamicReportsSettings
{
public Dictionary<string, DynamicReportSetting> Reports { get; set; } = new();
public bool EnableLegacyInvoiceExport { get; set; }
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; }
}