namespace Application.Dto.Category; /// /// 分类响应 /// public record CategoryResponse { public long Id { get; init; } public string Name { get; init; } = string.Empty; public TransactionType Type { get; init; } public string? Icon { get; init; } public DateTime CreateTime { get; init; } public DateTime? UpdateTime { get; init; } } /// /// 创建分类请求 /// public record CreateCategoryRequest { public string Name { get; init; } = string.Empty; public TransactionType Type { get; init; } } /// /// 更新分类请求 /// public record UpdateCategoryRequest { public long Id { get; init; } public string Name { get; init; } = string.Empty; } /// /// 生成图标请求 /// public record GenerateIconRequest { public long CategoryId { get; init; } } /// /// 更新选中图标请求 /// public record UpdateSelectedIconRequest { public long CategoryId { get; init; } public int SelectedIndex { get; init; } }