Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentAuthor ¶
type CommentAuthor struct { AuthorID int64 `json:"author_id"` Username string `json:"username"` Bio *string `json:"bio,omitempty"` ProfileImage string `json:"profile_image"` }
article author 구조체가 있어도 분리
type CreateCommentRequestDTO ¶
type CreateCommentRequestDTO struct {
Body string `json:"body"`
}
type CreateCommentResponseDTO ¶
type CreateCommentResponseDTO struct { ID int64 `json:"comment_id"` Body string `json:"body"` Author CommentAuthor `json:"author"` CreatedAt time.Time `json:"created_at"` }
type CreateCommentResponseWrapperDTO ¶
type CreateCommentResponseWrapperDTO struct {
Comment CreateCommentResponseDTO `json:"comment"`
}
type ReadCommentsResponseDTO ¶
type ReadCommentsResponseWrapperDTO ¶
type ReadCommentsResponseWrapperDTO struct {
Comments []ReadCommentsResponseDTO `json:"comments"`
}
type UpdateCommentRequestDTO ¶
type UpdateCommentRequestDTO struct {
Body string `json:"body"`
}
type UpdateCommentResponseWrapperDTO ¶
type UpdateCommentResponseWrapperDTO struct {
Comment UpdateCommentResponseDTO `json:"comment"`
}
Click to show internal directories.
Click to hide internal directories.