|
|
|
|
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));
|
|
|
|
|
}
|
|
|
|
|
}
|