diff --git a/internal/dto/post.go b/internal/dto/post.go index f7d9743..514be8b 100644 --- a/internal/dto/post.go +++ b/internal/dto/post.go @@ -29,6 +29,14 @@ type PostListDTO struct { Offset int `json:"offset"` } +type SearchPostListDTO struct { + Posts []PostDTO `json:"posts"` + Count int `json:"count"` + Query string `json:"query"` + Limit int `json:"limit"` + Offset int `json:"offset"` +} + func ToPostDTO(post *database.Post) PostDTO { if post == nil { return PostDTO{}