using MediatR;
using TakeoutSaaS.Application.App.Personal.Dto;
using TakeoutSaaS.Shared.Abstractions.Results;

namespace TakeoutSaaS.Application.App.Personal.Queries;

/// <summary>
/// 分页查询个人消息摘要。
/// </summary>
public sealed record SearchPersonalNotificationsQuery : IRequest<PagedResult<PersonalNotificationDto>>
{
    /// <summary>
    /// 页码。
    /// </summary>
    public int Page { get; init; } = 1;

    /// <summary>
    /// 每页条数。
    /// </summary>
    public int PageSize { get; init; } = 20;

    /// <summary>
    /// 是否仅返回未读。
    /// </summary>
    public bool UnreadOnly { get; init; }
}
