23 lines
881 B
Go
23 lines
881 B
Go
package entity
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Admin 管理员实体
|
|
type Admin struct {
|
|
Id uint64 `json:"id" orm:"id,primary"`
|
|
Username string `json:"username" orm:"username"`
|
|
Password string `json:"-" orm:"password"`
|
|
RealName string `json:"real_name" orm:"real_name"`
|
|
Email string `json:"email" orm:"email"`
|
|
Phone string `json:"phone" orm:"phone"`
|
|
Avatar string `json:"avatar" orm:"avatar"`
|
|
RoleId uint64 `json:"role_id" orm:"role_id"`
|
|
Status uint8 `json:"status" orm:"status"`
|
|
LastLoginAt *time.Time `json:"last_login_at" orm:"last_login_at"`
|
|
LastLoginIp string `json:"last_login_ip" orm:"last_login_ip"`
|
|
CreatedAt *time.Time `json:"created_at" orm:"created_at"`
|
|
UpdatedAt *time.Time `json:"updated_at" orm:"updated_at"`
|
|
DeletedAt uint64 `json:"deleted_at" orm:"deleted_at"`
|
|
} |