feat: 初始化 BuildingBlocks 仓库

This commit is contained in:
2026-01-29 01:57:39 +00:00
commit 4cf39b4d42
44 changed files with 1799 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
namespace TakeoutSaaS.Shared.Abstractions.Exceptions;
/// <summary>
/// 验证异常(用于聚合验证错误信息)。
/// </summary>
public class ValidationException(IDictionary<string, string[]> errors) : Exception("一个或多个验证错误")
{
/// <summary>
/// 字段/属性的错误集合。
/// </summary>
public IDictionary<string, string[]> Errors { get; } = errors;
}