mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-08-01 23:58:43 +02:00
Add entry API endpoints
This commit is contained in:
parent
c8d1c33cb4
commit
1e071ffed4
8 changed files with 325 additions and 31 deletions
|
@ -1,8 +1,12 @@
|
|||
package model
|
||||
|
||||
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"time"
|
||||
)
|
||||
|
||||
type DBComment struct {
|
||||
Timestamp time.Time `bson:"timestamp" json:"timestamp"`
|
||||
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