45 lines
1.6 KiB
Go
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)。
|
|
|
|
// IOperLog 操作日志服务接口
|
|
type IOperLog interface {
|
|
// Page 操作日志分页
|
|
Page(ctx context.Context, req *v1.OperLogPageReq) (res *v1.OperLogPageRes, err error)
|
|
// List 操作日志列表
|
|
List(ctx context.Context, req *v1.OperLogListReq) (res v1.OperLogListRes, err error)
|
|
// Detail 操作日志详情
|
|
Detail(ctx context.Context, req *v1.OperLogDetailReq) (res *v1.OperLogDetailRes, err error)
|
|
// Delete 删除操作日志
|
|
Delete(ctx context.Context, req *v1.OperLogDeleteReq) (res *v1.OperLogDeleteRes, err error)
|
|
// BatchDelete 批量删除操作日志
|
|
BatchDelete(ctx context.Context, req *v1.OperLogBatchDeleteReq) (res *v1.OperLogBatchDeleteRes, err error)
|
|
}
|
|
|
|
// localOperLog 操作日志服务实现实例
|
|
var localOperLog IOperLog
|
|
|
|
// OperLog 获取操作日志服务实例
|
|
func OperLog() IOperLog {
|
|
if localOperLog == nil {
|
|
panic("implement not found for interface IOperLog, forgot register?")
|
|
}
|
|
return localOperLog
|
|
}
|
|
|
|
// RegisterOperLog 注册操作日志服务实现
|
|
func RegisterOperLog(i IOperLog) {
|
|
localOperLog = i
|
|
}
|