1
This commit is contained in:
40
internal/app/system/service/sys_oper_log.go
Normal file
40
internal/app/system/service/sys_oper_log.go
Normal file
@@ -0,0 +1,40 @@
|
||||
// ================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// You can delete these comments if you wish manually maintain this interface file.
|
||||
// ================================================================================
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/net/ghttp"
|
||||
"github.com/tiger1103/gfast/v3/api/v1/system"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
||||
)
|
||||
|
||||
type (
|
||||
IOperateLog interface {
|
||||
OperationLog(r *ghttp.Request)
|
||||
Invoke(ctx context.Context, data *model.SysOperLogAdd)
|
||||
List(ctx context.Context, req *system.SysOperLogSearchReq) (listRes *system.SysOperLogSearchRes, err error)
|
||||
GetByOperId(ctx context.Context, operId uint64) (res *model.SysOperLogInfoRes, err error)
|
||||
DeleteByIds(ctx context.Context, ids []uint64) (err error)
|
||||
ClearLog(ctx context.Context) (err error)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localOperateLog IOperateLog
|
||||
)
|
||||
|
||||
func OperateLog() IOperateLog {
|
||||
if localOperateLog == nil {
|
||||
panic("implement not found for interface IOperateLog, forgot register?")
|
||||
}
|
||||
return localOperateLog
|
||||
}
|
||||
|
||||
func RegisterOperateLog(i IOperateLog) {
|
||||
localOperateLog = i
|
||||
}
|
||||
Reference in New Issue
Block a user