|
@@ -17,7 +17,7 @@ type User struct {
|
|
Password string `json:"password"`
|
|
Password string `json:"password"`
|
|
Remark string `json:"remark"`
|
|
Remark string `json:"remark"`
|
|
Source string `json:"source"` // 账号来源,默认或者自有账号
|
|
Source string `json:"source"` // 账号来源,默认或者自有账号
|
|
- CreatedAt time.Time `orm:"auto_now_add;type(datetime)" json:"createdAt"`
|
|
|
|
|
|
+ CreatedAt time.Time `orm:"auto_now_add;type(datetime);default(0001-01-01 00:00:00)" json:"createdAt"`
|
|
}
|
|
}
|
|
|
|
|
|
func (u *User) IsAdmin() bool {
|
|
func (u *User) IsAdmin() bool {
|