mirror of https://github.com/abpframework/abp.git
3 changed files with 48 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Volo.Abp.Studio.ModuleInstalling.Options |
|||
{ |
|||
public interface IModuleInstallingOptionProvider |
|||
{ |
|||
Task<List<ModuleInstallingOption>> GetAsync(); |
|||
} |
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
using System.Collections.Generic; |
|||
using JetBrains.Annotations; |
|||
|
|||
namespace Volo.Abp.Studio.ModuleInstalling.Options |
|||
{ |
|||
public class ModuleInstallingOption |
|||
{ |
|||
public string Name { get; set; } |
|||
|
|||
public string Description { get; set; } |
|||
|
|||
public ModuleInstallingOptionType Type { get; set; } |
|||
|
|||
public Dictionary<string, string> Values { get; set; } |
|||
|
|||
public ModuleInstallingOption( |
|||
[NotNull] string name, |
|||
[NotNull] string description, |
|||
[NotNull] ModuleInstallingOptionType type, |
|||
[CanBeNull] Dictionary<string, string> values = null) |
|||
{ |
|||
Name = Check.NotNullOrWhiteSpace(name, nameof(name)); |
|||
Description = Check.NotNullOrWhiteSpace(description, nameof(description)); |
|||
Type = type; |
|||
Values = values ?? new Dictionary<string, string>(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
namespace Volo.Abp.Studio.ModuleInstalling.Options |
|||
{ |
|||
public enum ModuleInstallingOptionType |
|||
{ |
|||
NotSpecified, |
|||
Checkbox, |
|||
FreeText, |
|||
ComboBox |
|||
} |
|||
} |
|||
Loading…
Reference in new issue