1、会话列表、消息界面展示与后端打通 后端: 1、修复会话和消息服务现存问题 2、会话对象不再返回Message对象,而是使用MessageBaseDto替代 3、修改查询会话列表和会话信息的逻辑 4、新增消息列表查询 文档: 后端代码规范文档新增从数据库同步到模型的命令
17 lines
600 B
C#
17 lines
600 B
C#
namespace IM_API.Dtos
|
|
{
|
|
public record MessageBaseDto
|
|
{
|
|
// 使用 { get; init; } 确保对象创建后不可修改,且支持无参构造
|
|
public string Type { get; init; } = default!;
|
|
public string ChatType { get; init; } = default!;
|
|
public string? MsgId { get; init; }
|
|
public int SenderId { get; init; }
|
|
public int ReceiverId { get; init; }
|
|
public int? GroupMemberId { get; init; }
|
|
public string Content { get; init; } = default!;
|
|
public DateTime TimeStamp { get; init; }
|
|
public MessageBaseDto() { }
|
|
}
|
|
}
|