Files
EasyGoAdmin_GoFrame_EleVue/internal/service/login_log.go
T
2026-10-20 11:37:25 +08:00

45 lines
1.6 KiB
Go

// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import (
"context"
"easygoadmin/api/v1"
)
// 按模块独立拆分(源:gf gen service 产物手工重组)。
// logic 方法签名变更时需同步维护本文件(手维护,勿整体运行 gf gen service)。
// ILoginLog 登录日志服务接口
type ILoginLog interface {
// Page 登录日志分页
Page(ctx context.Context, req *v1.LoginLogPageReq) (res *v1.LoginLogPageRes, err error)
// List 登录日志列表
List(ctx context.Context, req *v1.LoginLogListReq) (res v1.LoginLogListRes, err error)
// Detail 登录日志详情
Detail(ctx context.Context, req *v1.LoginLogDetailReq) (res *v1.LoginLogDetailRes, err error)
// Delete 删除登录日志
Delete(ctx context.Context, req *v1.LoginLogDeleteReq) (res *v1.LoginLogDeleteRes, err error)
// BatchDelete 批量删除登录日志
BatchDelete(ctx context.Context, req *v1.LoginLogBatchDeleteReq) (res *v1.LoginLogBatchDeleteRes, err error)
}
// localLoginLog 登录日志服务实现实例
var localLoginLog ILoginLog
// LoginLog 获取登录日志服务实例
func LoginLog() ILoginLog {
if localLoginLog == nil {
panic("implement not found for interface ILoginLog, forgot register?")
}
return localLoginLog
}
// RegisterLoginLog 注册登录日志服务实现
func RegisterLoginLog(i ILoginLog) {
localLoginLog = i
}