mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
28 lines
859 B
Go
28 lines
859 B
Go
package model
|
|
|
|
import (
|
|
"SamWaf/model/baseorm"
|
|
)
|
|
|
|
type Account struct {
|
|
baseorm.BaseOrm
|
|
LoginAccount string `json:"login_account"` //登录账号
|
|
LoginPassword string `json:"login_password"` //密码md5加密
|
|
Role string `json:"role"` //登录角色
|
|
Status int `json:"status"` //状态
|
|
Remarks string `json:"remarks"` //备注
|
|
}
|
|
|
|
type AccountLog struct {
|
|
baseorm.BaseOrm
|
|
LoginAccount string `json:"login_account"` //登录账号
|
|
OpType string `json:"op_type"` //操作类型
|
|
OpContent string `json:"op_content"` //操作内容
|
|
}
|
|
type TokenInfo struct {
|
|
baseorm.BaseOrm
|
|
LoginAccount string `json:"login_account"` //登录账号
|
|
LoginIp string `json:"login_ip"` //登录IP
|
|
AccessToken string `json:"access_token" crypto:"aes"` //访问码
|
|
}
|