This commit is contained in:
john 2025-05-27 00:28:10 +02:00
parent def7767b94
commit 8ad4302ec8
13 changed files with 3902 additions and 4 deletions

View file

@ -3,4 +3,4 @@ using JetBrains.Annotations;
namespace Femto.Api.Controllers.Posts.Dto;
[PublicAPI]
public record GetAllPublicPostsResponse(IEnumerable<PostDto> Posts, Guid? Next);
public record LoadPostsResponse(IEnumerable<PostDto> Posts, Guid? Next);

View file

@ -8,5 +8,6 @@ public record PostDto(
Guid PostId,
string Content,
IEnumerable<PostMediaDto> Media,
IEnumerable<PostReactionDto> Reactions,
DateTimeOffset CreatedAt
);

View file

@ -0,0 +1,3 @@
namespace Femto.Api.Controllers.Posts.Dto;
public record PostReactionDto(Guid ReactionId, string Emoji, int Count, bool DidReact);