mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-07-30 22:58:40 +02:00
Create auth API & comment code
This commit is contained in:
parent
1b15b12859
commit
c8d1c33cb4
17 changed files with 475 additions and 101 deletions
|
@ -3,6 +3,6 @@ package model
|
|||
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
||||
type DBComment struct {
|
||||
CommentedBy *primitive.ObjectID `bson:"commented_by" json:"commented_by"`
|
||||
Content string `bson:"content" json:"content"`
|
||||
CommentedBy *primitive.ObjectID `bson:"commented_by" json:"commented_by"` // CommentedBy contains a reference to the user who commented
|
||||
Content string `bson:"content" json:"content"` // Content is the body of the comment
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue