hopefully not a horribly foolish refactoring

This commit is contained in:
john 2025-05-11 23:26:09 +02:00
parent 59d660165f
commit 1ecaf64dea
82 changed files with 782 additions and 398 deletions

View file

@ -1,25 +0,0 @@
using Femto.Modules.Blog.Domain.Posts.Commands.GetPosts.Dto;
using MediatR;
namespace Femto.Modules.Blog.Domain.Posts.Commands.GetPosts;
public class GetPostsQuery : IRequest<GetPostsQueryResult>
{
public string? Username { get; init; }
public Guid? From { get; init; }
public int Amount { get; init; } = 20;
public Guid? AuthorGuid { get; init; }
/// <summary>
/// Default is to load in reverse chronological order
/// TODO this is not exposed on the client as it probably wouldn't work that well
/// </summary>
public GetPostsDirection Direction { get; init; } = GetPostsDirection.Backward;
}
public enum GetPostsDirection
{
Forward,
Backward
}