添加收件人信息
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 9s
Docker Build & Deploy / Deploy to Production (push) Has been skipped

This commit is contained in:
2025-12-27 16:54:08 +08:00
parent e68aef6ba1
commit bb5b2fae1e
6 changed files with 23 additions and 3 deletions

View File

@@ -18,6 +18,8 @@ public class EmailMessageDto
/// 已解析的账单数量
/// </summary>
public int TransactionCount { get; set; }
public string ToName { get; set; } = string.Empty;
/// <summary>
/// 从实体转换为DTO
@@ -34,7 +36,8 @@ public class EmailMessageDto
ReceivedDate = entity.ReceivedDate,
CreateTime = entity.CreateTime,
UpdateTime = entity.UpdateTime,
TransactionCount = transactionCount
TransactionCount = transactionCount,
ToName = entity.To?.Split('<').FirstOrDefault()?.Trim() ?? "未知"
};
}
}