项目初始化
This commit is contained in:
11
internal/model/admin.go
Normal file
11
internal/model/admin.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Admin struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
PasswordHash string `json:"-"`
|
||||
LastLogin *time.Time `json:"last_login"`
|
||||
}
|
||||
Reference in New Issue
Block a user