mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
26 lines
623 B
C#
26 lines
623 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 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; }
|
|
|
|
}
|