IFileService, настройки хранилища. EsppDataController
This commit is contained in:
24
PARR.API/Settings/StorageSettings.cs
Normal file
24
PARR.API/Settings/StorageSettings.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
namespace PARR.API.Settings
|
||||
{
|
||||
public class StorageSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// Путь к хранилищу
|
||||
/// </summary>
|
||||
public string StoragePath { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Настройки хранилища загрузки шаблонов ЕСПП
|
||||
/// </summary>
|
||||
public StorageSettingsEsspTemplates? EsppTemplates { get; set; }
|
||||
}
|
||||
|
||||
public class StorageSettingsEsspTemplates
|
||||
{
|
||||
public string[] TemplatePath => new string[] { "espp-templates" };
|
||||
|
||||
public string[] AllowedExtensions { get; set; } = Array.Empty<string>();
|
||||
|
||||
public int MaxFileSizeMb { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user