签入脚本
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
// ================================================================================
|
||||
// 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)。
|
||||
|
||||
// IJobLog 任务日志服务接口
|
||||
type IJobLog interface {
|
||||
// Page 任务日志分页
|
||||
Page(ctx context.Context, req *v1.JobLogPageReq) (res *v1.JobLogPageRes, err error)
|
||||
// List 任务日志列表
|
||||
List(ctx context.Context, req *v1.JobLogListReq) (res v1.JobLogListRes, err error)
|
||||
// Detail 任务日志详情
|
||||
Detail(ctx context.Context, req *v1.JobLogDetailReq) (res *v1.JobLogDetailRes, err error)
|
||||
// Delete 删除任务日志
|
||||
Delete(ctx context.Context, req *v1.JobLogDeleteReq) (res *v1.JobLogDeleteRes, err error)
|
||||
// BatchDelete 批量删除任务日志
|
||||
BatchDelete(ctx context.Context, req *v1.JobLogBatchDeleteReq) (res *v1.JobLogBatchDeleteRes, err error)
|
||||
}
|
||||
|
||||
// localJobLog 任务日志服务实现实例
|
||||
var localJobLog IJobLog
|
||||
|
||||
// JobLog 获取任务日志服务实例
|
||||
func JobLog() IJobLog {
|
||||
if localJobLog == nil {
|
||||
panic("implement not found for interface IJobLog, forgot register?")
|
||||
}
|
||||
return localJobLog
|
||||
}
|
||||
|
||||
// RegisterJobLog 注册任务日志服务实现
|
||||
func RegisterJobLog(i IJobLog) {
|
||||
localJobLog = i
|
||||
}
|
||||
Reference in New Issue
Block a user