feat(api): support list/revoke auth token in admin/current user api

This commit is contained in:
Marcus Efraimsson
2019-03-08 15:15:38 +01:00
parent 8029e48588
commit 0cd5a6772d
8 changed files with 600 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
package dtos
import "time"
type UserToken struct {
Id int64 `json:"id"`
IsActive bool `json:"isActive"`
ClientIp string `json:"clientIp"`
UserAgent string `json:"userAgent"`
CreatedAt time.Time `json:"createdAt"`
SeenAt time.Time `json:"seenAt"`
}