Support optional fields being empty.
This commit is contained in:
parent
356cf21b3e
commit
56f8a619a5
5 changed files with 46 additions and 27 deletions
|
|
@ -4,17 +4,17 @@ package admin
|
|||
import "time"
|
||||
|
||||
type PasswordToken struct {
|
||||
Hash string `form:"hash"`
|
||||
UserID int `form:"user_id"`
|
||||
CreatedAt time.Time `form:"created_at"`
|
||||
Hash string `form:"hash"`
|
||||
UserID int `form:"user_id"`
|
||||
CreatedAt *time.Time `form:"created_at"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
Name string `form:"name"`
|
||||
Email string `form:"email"`
|
||||
Password string `form:"password"`
|
||||
Verified bool `form:"verified"`
|
||||
CreatedAt time.Time `form:"created_at"`
|
||||
Name string `form:"name"`
|
||||
Email string `form:"email"`
|
||||
Password string `form:"password"`
|
||||
Verified bool `form:"verified"`
|
||||
CreatedAt *time.Time `form:"created_at"`
|
||||
}
|
||||
|
||||
type EntityList struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue