Add hash-lists filtering, format code, prepare API

This commit is contained in:
Kevin Kandlbinder 2022-02-23 15:12:02 +01:00
parent b81af24e50
commit 1b15b12859
11 changed files with 353 additions and 106 deletions

10
internal/db/model/list.go Normal file
View 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"`
}