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