Added admin handler configuration.
This commit is contained in:
parent
db4da26af9
commit
8c4e99fbd0
5 changed files with 34 additions and 78 deletions
|
|
@ -4,22 +4,17 @@ package admin
|
|||
import "time"
|
||||
|
||||
type PasswordToken struct {
|
||||
// Fields.
|
||||
Hash string `form:"hash"`
|
||||
UserID int `form:"user_id"`
|
||||
CreatedAt time.Time `form:"created_at"`
|
||||
// Edges.
|
||||
// User int `form:"user"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
// Fields.
|
||||
Name string `form:"name"`
|
||||
Email string `form:"email"`
|
||||
Password string `form:"password"`
|
||||
Verified bool `form:"verified"`
|
||||
CreatedAt time.Time `form:"created_at"`
|
||||
// Edges.
|
||||
}
|
||||
|
||||
type EntityList struct {
|
||||
|
|
@ -32,3 +27,9 @@ type EntityValues struct {
|
|||
ID int
|
||||
Values []string
|
||||
}
|
||||
|
||||
type HandlerConfig struct {
|
||||
ItemsPerPage int
|
||||
PageQueryKey string
|
||||
TimeFormat string
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue