Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatedWhereScope ¶
Types ¶
type JsonTime ¶
func (JsonTime) MarshalJSON ¶
MarshalJSON on JSONTime format Time field with %Y-%m-%d %H:%M:%S
type User ¶
type User struct {
ID int `gorm:"id" json:"id,omitempty"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
Name string `json:"name"`
Avatar string `json:"avatar"`
CreatedAt JsonTime `json:"created_at,omitempty"`
UpdatedAt JsonTime `json:"updated_at,omitempty"`
DeletedAt gorm.DeletedAt `json:"deleted_at,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.