This commit is contained in:
2025-06-12 10:20:26 +08:00
parent 96d537c044
commit b71e718308
40 changed files with 1961 additions and 108 deletions

View File

@@ -9,7 +9,7 @@ import (
type LoginLogRepository interface {
Create(ctx context.Context, obj *LoginLog) error
GetLatest(ctx context.Context, email string) (*LoginLog, error)
GetLatest(ctx context.Context, email string) ([]*LoginLog, error)
List(ctx context.Context, q dto.SearchDto) ([]*LoginLog, int64, error)
Count(ctx context.Context, email string) (int64, error)
}
@@ -27,7 +27,7 @@ type LoginLog struct {
Browser string `json:"browser" gorm:"type:varchar(100);not null;"`
}
func (LoginLog) TableName() string {
func (*LoginLog) TableName() string {
return "sys_user_login_log"
}