stuff
This commit is contained in:
parent
ab2e20f7e1
commit
befaa207d7
23 changed files with 244 additions and 95 deletions
|
@ -0,0 +1,6 @@
|
|||
using JetBrains.Annotations;
|
||||
|
||||
namespace Femto.Api.Controllers.Posts.Dto;
|
||||
|
||||
[PublicAPI]
|
||||
public record GetAllPublicPostsResponse(IEnumerable<PublicPostDto> Posts, Guid? Next);
|
|
@ -1,6 +0,0 @@
|
|||
namespace Femto.Api.Controllers.Posts.Dto;
|
||||
|
||||
public record GetPostResponse
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
using JetBrains.Annotations;
|
||||
|
||||
namespace Femto.Api.Controllers.Posts.Dto;
|
||||
|
||||
[PublicAPI]
|
||||
public record GetPublicPostsSearchParams(Guid? From, int? Amount);
|
6
Femto.Api/Controllers/Posts/Dto/PublicPostAuthorDto.cs
Normal file
6
Femto.Api/Controllers/Posts/Dto/PublicPostAuthorDto.cs
Normal file
|
@ -0,0 +1,6 @@
|
|||
using JetBrains.Annotations;
|
||||
|
||||
namespace Femto.Api.Controllers.Posts.Dto;
|
||||
|
||||
[PublicAPI]
|
||||
public record PublicPostAuthorDto(Guid AuthorId, string Username);
|
12
Femto.Api/Controllers/Posts/Dto/PublicPostDto.cs
Normal file
12
Femto.Api/Controllers/Posts/Dto/PublicPostDto.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using JetBrains.Annotations;
|
||||
|
||||
namespace Femto.Api.Controllers.Posts.Dto;
|
||||
|
||||
[PublicAPI]
|
||||
public record PublicPostDto(
|
||||
PublicPostAuthorDto Author,
|
||||
Guid PostId,
|
||||
string Content,
|
||||
IEnumerable<Uri> Media,
|
||||
DateTime CreatedAt
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue