add backend supporting opengraph and comments

This commit is contained in:
2024-11-29 19:14:12 -07:00
parent 09a0c44e50
commit d2efb2f0cb
15 changed files with 633 additions and 167 deletions

16
backend/types/types.go Normal file
View 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"`
}