添加收件人信息
This commit is contained in:
@@ -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() ?? "未知"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user