簡化傳參

This commit is contained in:
2023-05-16 02:56:25 +08:00
parent a6a8f257a4
commit 9681b09b05
4 changed files with 42 additions and 49 deletions

View File

@@ -13,6 +13,7 @@ type User struct {
Email string `json:"email"`
Password string `json:"-"`
Slat string `json:"-"`
Admin bool `json:"admin"`
CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime"`
UpdatedAt time.Time `json:"updated_at" gorm:"autoUpdateTime"`
}