fix: 设置登录IP和登录时间

This commit is contained in:
TsMask
2023-10-21 17:43:17 +08:00
parent 7aca7b2fc1
commit ec76e34576
5 changed files with 28 additions and 4 deletions

View File

@@ -10,6 +10,9 @@ type IAccount interface {
// LoginByUsername 登录生成token
LoginByUsername(username, password string) (vo.LoginUser, error)
// UpdateLoginDateAndIP 更新登录时间和IP
UpdateLoginDateAndIP(loginUser *vo.LoginUser) bool
// ClearLoginRecordCache 清除错误记录次数
ClearLoginRecordCache(username string) bool