You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.6 KiB
C#
34 lines
1.6 KiB
C#
using NPin.Framework.Upms.Domain.Shared.Consts;
|
|
using Volo.Abp.Settings;
|
|
|
|
namespace NPin.Framework.Upms.Domain.Settings;
|
|
|
|
public class UpmsStaticSettingProvider : SettingDefinitionProvider
|
|
{
|
|
public override void Define(ISettingDefinitionContext context)
|
|
{
|
|
DefineSysSettingDefinitions(context);
|
|
DefineSmsSettingDefinitions(context);
|
|
}
|
|
|
|
private void DefineSysSettingDefinitions(ISettingDefinitionContext context)
|
|
{
|
|
context.Add(new SettingDefinition(ConfigKeyConst.SysSettingPrefix));
|
|
context.Add(new SettingDefinition(ConfigKeyConst.SysSettingDataSeed));
|
|
context.Add(new SettingDefinition(ConfigKeyConst.SysDefaultAdminPassword));
|
|
context.Add(new SettingDefinition(ConfigKeyConst.SysDefaultTenantAdminPassword));
|
|
context.Add(new SettingDefinition(ConfigKeyConst.SysEnableCaptcha));
|
|
context.Add(new SettingDefinition(ConfigKeyConst.SysEnableRegister));
|
|
context.Add(new SettingDefinition(ConfigKeyConst.SysEnableDataBaseBackup));
|
|
}
|
|
|
|
private void DefineSmsSettingDefinitions(ISettingDefinitionContext context)
|
|
{
|
|
context.Add(new SettingDefinition(ConfigKeyConst.SmsConfigPrefix));
|
|
context.Add(new SettingDefinition(ConfigKeyConst.SmsConfigDataSeed));
|
|
context.Add(new SettingDefinition(ConfigKeyConst.SmsConfigModel));
|
|
context.Add(new SettingDefinition(ConfigKeyConst.SmsProviders));
|
|
context.Add(new SettingDefinition(ConfigKeyConst.SmsSettings));
|
|
context.Add(new SettingDefinition(ConfigKeyConst.SmsTemplates));
|
|
}
|
|
} |