Added json and bson tags to ApiKey
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
package backend
|
package backend
|
||||||
|
|
||||||
type ApiKey struct {
|
type ApiKey struct {
|
||||||
Perm map[string]bool
|
Perm map[string]bool `json:"perm" bson:"perm"`
|
||||||
ID string
|
ID string `json:"id" bson:"_id" valkey:",key"`
|
||||||
AppID string
|
AppID string `json:"appID" bson:"appID"`
|
||||||
Death int64
|
Death int64 `json:"death" bson:"death"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (k ApiKey) GetID() string {
|
func (k ApiKey) GetID() string {
|
||||||
|
|||||||
Reference in New Issue
Block a user