33 lines
1.3 KiB
Go
33 lines
1.3 KiB
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type User struct {
|
|
ID int `json:"id" db:"id"`
|
|
CreatedAt *time.Time `json:"created_at" db:"created_at"`
|
|
UpdatedAt *time.Time `json:"updated_at" db:"updated_at"`
|
|
LastOperator string `json:"last_operator" db:"last_operator"`
|
|
DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"`
|
|
UserID string `json:"user_id" db:"user_id"` // 内部唯一标识
|
|
Password string `json:"password"` //密码
|
|
Name string `json:"name"` // 外部显示标识(当前可以重复)
|
|
Mobile string `json:"mobile"`
|
|
Email string `json:"email"`
|
|
Avatar string `json:"avatar"` // 头像
|
|
Status int8 `json:"status"`
|
|
Type int8 `json:"type"` // 用户类型
|
|
Company string `json:"company"` //公司名称
|
|
CityCode int `json:"city_code" db:"city_code"`
|
|
DistrictCode int `json:"district_code" db:"district_code"`
|
|
Address string `json:"address"`
|
|
|
|
IDCardNo string `json:"id_card_no" db:"id_card_no"` // 身份证号
|
|
Remark string `json:"remark"`
|
|
|
|
LastLoginAt *time.Time `json:"last_login_at" db:"last_login_at"`
|
|
LastLoginIP string `json:"last_login_ip" db:"last_login_ip"`
|
|
LastLoginType string `json:"last_login_type" db:"last_login_type"`
|
|
}
|