diff --git a/internal/dto/post_request.go b/internal/dto/post_request.go new file mode 100644 index 0000000..3bfca1a --- /dev/null +++ b/internal/dto/post_request.go @@ -0,0 +1,13 @@ +package dto + +type CreatePostRequest struct { + Title string `json:"title"` + URL string `json:"url"` + Content string `json:"content"` +} + +type UpdatePostRequest struct { + Title string `json:"title"` + Content string `json:"content"` +} +