add oauth loginlog & fix bugs

This commit is contained in:
ljw committed 2024-09-19 10:44:49 +08:00
1 parent ebd1feb8d1
commit a4b413dadb
48 files changed
+3477 -184

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
package model
type LoginLog struct {
IdModel
UserId uint `json:"user_id"`
Client string `json:"client"` //webadmin,webclient,app,
Uuid string `json:"uuid"`
Ip string `json:"ip"`
Type string `json:"type"` //account,oauth
Platform string `json:"platform"` //windows,linux,mac,android,ios
TimeModel
}
const (
LoginLogTypeAccount = "account"
LoginLogTypeOauth = "oauth"
)
type LoginLogList struct {
LoginLogs []*LoginLog `json:"list"`
Pagination
}