feat: 增强仓储CRUD与种子配置

This commit is contained in:
2025-12-02 09:46:44 +08:00
parent ffc4f0885f
commit 1a01454266
16 changed files with 587 additions and 56 deletions

View File

@@ -26,4 +26,9 @@ public sealed class AppSeedOptions
/// 基础字典分组。
/// </summary>
public List<DictionarySeedGroupOptions> DictionaryGroups { get; set; } = new();
/// <summary>
/// 系统参数配置。
/// </summary>
public List<SystemParameterSeedOptions> SystemParameters { get; set; } = new();
}

View File

@@ -0,0 +1,37 @@
namespace TakeoutSaaS.Infrastructure.App.Options;
/// <summary>
/// 系统参数种子配置项。
/// </summary>
public sealed class SystemParameterSeedOptions
{
/// <summary>
/// 目标租户null 时使用默认租户或 0。
/// </summary>
public long? TenantId { get; set; }
/// <summary>
/// 参数键。
/// </summary>
public string Key { get; set; } = string.Empty;
/// <summary>
/// 参数值。
/// </summary>
public string Value { get; set; } = string.Empty;
/// <summary>
/// 说明。
/// </summary>
public string? Description { get; set; }
/// <summary>
/// 排序。
/// </summary>
public int SortOrder { get; set; }
/// <summary>
/// 是否启用。
/// </summary>
public bool IsEnabled { get; set; } = true;
}