using System; using System.Collections.Generic; using Volo.Abp.Domain.Entities.Auditing; namespace Kurs.Settings.Entities; public class SettingDefinition : FullAuditedEntity { public string Code { get; set; } public string NameKey { get; set; } public string DescriptionKey { get; set; } public string DefaultValue { get; set; } /// /// Can clients see this setting and it's value. /// It maybe dangerous for some settings to be visible to clients (such as an email server password). /// Default: false. /// public bool IsVisibleToClients { get; set; } /// /// A list of allowed providers to get/set value of this setting. /// An empty list indicates that all providers are allowed. /// public List Providers { get; set; } /// /// Is this setting inherited from parent scopes. /// Value is inherited from other providers or not /// Default: True. /// public bool IsInherited { get; set; } public bool IsEncrypted { get; set; } public string MainGroupKey { get; set; } public string SubGroupKey { get; set; } public string RequiredPermissionName { get; set; } // Permission: Tema, Setting: Tema, public string DataType { get; set; } //text (default), number, checkbox, select (select options) //key: vt'ye kaydedilecek değer, //value: ILocalizableString, kullanıcıya gösterilecek değer public Dictionary SelectOptions { get; set; } public int Order { get; set; } }