diff --git a/pkg/internal/http/api/articles_api.go b/pkg/internal/http/api/articles_api.go index d355899..464f78d 100644 --- a/pkg/internal/http/api/articles_api.go +++ b/pkg/internal/http/api/articles_api.go @@ -30,7 +30,7 @@ func createArticle(c *fiber.Ctx) error { Title string `json:"title" validate:"required,max=1024"` Description *string `json:"description"` Content string `json:"content" validate:"required"` - Thumbnail *uint `json:"thumbnail"` + Thumbnail string `json:"thumbnail"` Attachments []string `json:"attachments"` Tags []models.Tag `json:"tags"` Categories []models.Category `json:"categories"` @@ -116,7 +116,7 @@ func editArticle(c *fiber.Ctx) error { Title string `json:"title" validate:"required,max=1024"` Description *string `json:"description"` Content string `json:"content" validate:"required"` - Thumbnail *uint `json:"thumbnail"` + Thumbnail string `json:"thumbnail"` Attachments []string `json:"attachments"` Tags []models.Tag `json:"tags"` Categories []models.Category `json:"categories"` diff --git a/pkg/internal/http/api/stories_api.go b/pkg/internal/http/api/stories_api.go index 44decf1..067eb57 100644 --- a/pkg/internal/http/api/stories_api.go +++ b/pkg/internal/http/api/stories_api.go @@ -31,7 +31,7 @@ func createStory(c *fiber.Ctx) error { Title *string `json:"title"` Content string `json:"content" validate:"required,max=4096"` Location *string `json:"location"` - Thumbnail *uint `json:"thumbnail"` + Thumbnail string `json:"thumbnail"` Attachments []string `json:"attachments"` Tags []models.Tag `json:"tags"` Categories []models.Category `json:"categories"` @@ -135,7 +135,7 @@ func editStory(c *fiber.Ctx) error { Alias *string `json:"alias"` Title *string `json:"title"` Content string `json:"content" validate:"required,max=4096"` - Thumbnail *uint `json:"thumbnail"` + Thumbnail string `json:"thumbnail"` Location *string `json:"location"` Attachments []string `json:"attachments"` Tags []models.Tag `json:"tags"` diff --git a/pkg/internal/models/posts.go b/pkg/internal/models/posts.go index 53b2f53..95b9e66 100644 --- a/pkg/internal/models/posts.go +++ b/pkg/internal/models/posts.go @@ -65,7 +65,7 @@ type Post struct { } type PostStoryBody struct { - Thumbnail *uint `json:"thumbnail"` + Thumbnail string `json:"thumbnail"` Title *string `json:"title"` Content string `json:"content"` Location *string `json:"location"` @@ -73,7 +73,7 @@ type PostStoryBody struct { } type PostArticleBody struct { - Thumbnail *uint `json:"thumbnail"` + Thumbnail string `json:"thumbnail"` Title string `json:"title"` Description *string `json:"description"` Content string `json:"content"`