mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-06-03 19:22:00 +02:00
api: Update graphql schema
This commit is contained in:
parent
39f721101e
commit
4f587820d1
9 changed files with 578 additions and 200 deletions
|
@ -11,6 +11,7 @@ type List struct {
|
|||
Tags []string `json:"tags"`
|
||||
RawComments []*model.DBComment
|
||||
MaintainerIDs []*primitive.ObjectID
|
||||
CreatorID primitive.ObjectID
|
||||
}
|
||||
|
||||
func MakeList(dbList *model.DBHashList) *List {
|
||||
|
@ -20,5 +21,6 @@ func MakeList(dbList *model.DBHashList) *List {
|
|||
Tags: dbList.Tags,
|
||||
RawComments: dbList.Comments,
|
||||
MaintainerIDs: dbList.Maintainers,
|
||||
CreatorID: dbList.Creator,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@ type AddMxid struct {
|
|||
Mxid string `json:"mxid"`
|
||||
}
|
||||
|
||||
type AddToList struct {
|
||||
List string `json:"list"`
|
||||
Entries []string `json:"entries"`
|
||||
type AddToLists struct {
|
||||
Lists []string `json:"lists"`
|
||||
Entry string `json:"entry"`
|
||||
}
|
||||
|
||||
type CommentConnection struct {
|
||||
|
@ -143,6 +143,11 @@ type Register struct {
|
|||
MxID string `json:"mxID"`
|
||||
}
|
||||
|
||||
type RemoveFromLists struct {
|
||||
Lists []string `json:"lists"`
|
||||
Entry string `json:"entry"`
|
||||
}
|
||||
|
||||
type RemoveMxid struct {
|
||||
Mxid string `json:"mxid"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue