summaryrefslogtreecommitdiff
path: root/api/types.go
blob: 5c58f0610394cb23226334960bc2e812c7cda40d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package api

type UserPayload struct {
	Username   string `json:"username"`
	ID         string `json:"id"`
	Privileged bool   `json:"privileged"`
}

type UserCreatePayload struct {
	Username   string `json:"username"`
	Password   string `json:"password"`
	Privileged bool   `json:"privileged"`
}

type UserUpdatePayload struct {
	Username string `json:"username"`
}

type UserSecretPayload struct {
	Secret string `json:"secret"`
}

type TagUpdatePayload struct {
	Type string `json:"type"`
}

type ImageUpdatePayload struct {
	Source                string `json:"source"`
	Parent                string `json:"parent"`
	Commentary            string `json:"commentary"`
	CommentaryTranslation string `json:"commentary_translation"`
}