17 lines
384 B
Go
17 lines
384 B
Go
package types
|
|
|
|
type AddCommentRequest struct {
|
|
Comment string `json:"comment"`
|
|
URL string `json:"url"`
|
|
UserID string `json:"user_id"`
|
|
}
|
|
|
|
type Comment struct {
|
|
ID string `json:"id"`
|
|
Content string `json:"content"`
|
|
Commenter string `json:"commenter"`
|
|
ParentID string `json:"parent_id"`
|
|
WebpageID string `json:"webpage_id"`
|
|
CreatedAt string `json:"created_at"`
|
|
}
|