feat: 增加系统用户管理

This commit is contained in:
chenzifan
2024-03-07 08:37:48 +08:00
parent 7a25c6e062
commit 6ce7a9c16f
9 changed files with 7869 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
package model
type AdminUser struct {
BaseModel
Username string
Password string
Salt string // 密码盐
ExpiredTime int64 // 账户到期时间
Status bool `gorm:"default:true"` // 当前状态
LastLoginAt int64 // 最后登录时间
LastLoginIp string // 最后登录 IP
}

View File

@@ -0,0 +1,11 @@
package vo
type AdminUser struct {
BaseVo
Username string `json:"username"`
Salt string `json:"salt"` // 密码盐
ExpiredTime int64 `json:"expired_time"` // 账户到期时间
Status bool `json:"status"` // 当前状态
LastLoginAt int64 `json:"last_login_at"` // 最后登录时间
LastLoginIp string `json:"last_login_ip"` // 最后登录 IP
}