mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-08-02 16:18:38 +02:00
Add hash-lists filtering, format code, prepare API
This commit is contained in:
parent
b81af24e50
commit
1b15b12859
11 changed files with 353 additions and 106 deletions
10
internal/db/model/list.go
Normal file
10
internal/db/model/list.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package model
|
||||
|
||||
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
||||
type DBHashList struct {
|
||||
ID primitive.ObjectID `bson:"_id" json:"id"`
|
||||
Tags []string `bson:"tags" json:"tags"`
|
||||
Comments []*DBComment `bson:"comments" json:"comments"`
|
||||
Maintainers []*primitive.ObjectID `bson:"maintainers" json:"maintainers"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue