23 lines
545 B
C#
23 lines
545 B
C#
|
|
namespace Application.Dto.Message;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 消息记录响应
|
||
|
|
/// </summary>
|
||
|
|
public record MessageRecordResponse
|
||
|
|
{
|
||
|
|
public long Id { get; init; }
|
||
|
|
public string Title { get; init; } = string.Empty;
|
||
|
|
public string Content { get; init; } = string.Empty;
|
||
|
|
public bool IsRead { get; init; }
|
||
|
|
public DateTime CreateTime { get; init; }
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 消息分页结果
|
||
|
|
/// </summary>
|
||
|
|
public record MessagePagedResult
|
||
|
|
{
|
||
|
|
public MessageRecordResponse[] Data { get; init; } = [];
|
||
|
|
public int Total { get; init; }
|
||
|
|
}
|