add backend supporting opengraph and comments
This commit is contained in:
16
backend/types/types.go
Normal file
16
backend/types/types.go
Normal file
@ -0,0 +1,16 @@
|
||||
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"`
|
||||
}
|
Reference in New Issue
Block a user