hopefully not a horribly foolish refactoring
This commit is contained in:
parent
59d660165f
commit
1ecaf64dea
82 changed files with 782 additions and 398 deletions
|
@ -1,3 +1,3 @@
|
|||
namespace Femto.Api.Controllers.Posts.Dto;
|
||||
|
||||
public record CreatePostRequest(Guid AuthorId, string Content, IEnumerable<Uri> Media);
|
||||
public record CreatePostRequest(Guid AuthorId, string Content, IEnumerable<CreatePostRequestMedia> Media);
|
|
@ -0,0 +1,6 @@
|
|||
using JetBrains.Annotations;
|
||||
|
||||
namespace Femto.Api.Controllers.Posts.Dto;
|
||||
|
||||
[PublicAPI]
|
||||
public record CreatePostRequestMedia(Guid MediaId, Uri Url, string? Type, int? Width, int? Height);
|
|
@ -3,4 +3,4 @@ using JetBrains.Annotations;
|
|||
namespace Femto.Api.Controllers.Posts.Dto;
|
||||
|
||||
[PublicAPI]
|
||||
public record GetPublicPostsSearchParams(Guid? From, int? Amount);
|
||||
public record GetPublicPostsSearchParams(Guid? From, int? Amount, Guid? AuthorId, string? Author);
|
|
@ -7,6 +7,6 @@ public record PublicPostDto(
|
|||
PublicPostAuthorDto Author,
|
||||
Guid PostId,
|
||||
string Content,
|
||||
IEnumerable<Uri> Media,
|
||||
DateTimeOffset CreatedAt
|
||||
IEnumerable<PublicPostMediaDto> Media,
|
||||
DateTimeOffset CreatedAt
|
||||
);
|
6
Femto.Api/Controllers/Posts/Dto/PublicPostMediaDto.cs
Normal file
6
Femto.Api/Controllers/Posts/Dto/PublicPostMediaDto.cs
Normal file
|
@ -0,0 +1,6 @@
|
|||
using JetBrains.Annotations;
|
||||
|
||||
namespace Femto.Api.Controllers.Posts.Dto;
|
||||
|
||||
[PublicAPI]
|
||||
public record PublicPostMediaDto(Uri Url, int? Width, int? Height);
|
Loading…
Add table
Add a link
Reference in a new issue