mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2026-09-19 09:32:29 +08:00
30 lines
1.2 KiB
Go
30 lines
1.2 KiB
Go
package model
|
|
|
|
import (
|
|
"SamWaf/model/baseorm"
|
|
)
|
|
|
|
type Account struct {
|
|
baseorm.BaseOrm
|
|
LoginAccount string `gorm:"size:100" json:"login_account"` //登录账号
|
|
LoginPassword string `gorm:"size:255" json:"login_password"` //密码md5加密
|
|
Role string `gorm:"size:50" json:"role"` //登录角色
|
|
Status int `json:"status"` //状态
|
|
Remarks string `gorm:"size:500" json:"remarks"` //备注
|
|
}
|
|
|
|
type AccountLog struct {
|
|
baseorm.BaseOrm
|
|
LoginAccount string `gorm:"size:100" json:"login_account"` //登录账号
|
|
OpType string `gorm:"size:100" json:"op_type"` //操作类型
|
|
OpContent string `gorm:"type:text" json:"op_content"` //操作内容
|
|
}
|
|
type TokenInfo struct {
|
|
baseorm.BaseOrm
|
|
LoginAccount string `gorm:"size:100" json:"login_account"` //登录账号
|
|
LoginIp string `gorm:"size:64" json:"login_ip"` //登录IP
|
|
AccessToken string `gorm:"type:text" json:"access_token" crypto:"aes"` //访问码
|
|
DeviceFingerprint string `gorm:"size:255" json:"device_fingerprint"` //设备指纹
|
|
LoginType string `gorm:"size:50" json:"login_type"` //登录类型 web/mobile
|
|
}
|