return postdto from post create
This commit is contained in:
parent
8ad4302ec8
commit
d1687f276b
15 changed files with 226 additions and 111 deletions
|
@ -1,3 +1,3 @@
|
|||
namespace Femto.Api.Controllers.Posts.Dto;
|
||||
|
||||
public record CreatePostResponse(Guid PostId);
|
||||
public record CreatePostResponse(PostDto Post);
|
|
@ -9,5 +9,6 @@ public record PostDto(
|
|||
string Content,
|
||||
IEnumerable<PostMediaDto> Media,
|
||||
IEnumerable<PostReactionDto> Reactions,
|
||||
DateTimeOffset CreatedAt
|
||||
DateTimeOffset CreatedAt,
|
||||
IEnumerable<string> PossibleReactions
|
||||
);
|
|
@ -1,3 +1,3 @@
|
|||
namespace Femto.Api.Controllers.Posts.Dto;
|
||||
|
||||
public record PostReactionDto(Guid ReactionId, string Emoji, int Count, bool DidReact);
|
||||
public record PostReactionDto(string Emoji, int Count, bool DidReact);
|
Loading…
Add table
Add a link
Reference in a new issue