mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-13 05:23:44 +08:00
发布v2.11.5版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -66,10 +66,11 @@ func (s *sCronClient) Start(ctx context.Context) {
|
||||
|
||||
// 注册RPC路由
|
||||
s.client.RegisterRPCRouter(
|
||||
s.OnCronDelete, // 删除任务
|
||||
s.OnCronEdit, // 编辑任务
|
||||
s.OnCronStatus, // 修改任务状态
|
||||
s.OnCronOnlineExec, // 执行一次任务
|
||||
s.OnCronDelete, // 删除任务
|
||||
s.OnCronEdit, // 编辑任务
|
||||
s.OnCronStatus, // 修改任务状态
|
||||
s.OnCronOnlineExec, // 执行一次任务
|
||||
s.OnCronDispatchLog, // 查看调度日志
|
||||
)
|
||||
|
||||
// 注册拦截器
|
||||
|
@@ -34,3 +34,10 @@ func (s *sCronClient) OnCronOnlineExec(ctx context.Context, req *servmsg.CronOnl
|
||||
err = service.SysCron().OnlineExec(ctx, req.OnlineExecInp)
|
||||
return
|
||||
}
|
||||
|
||||
// OnCronDispatchLog 查看调度日志
|
||||
func (s *sCronClient) OnCronDispatchLog(ctx context.Context, req *servmsg.CronDispatchLogReq) (res *servmsg.CronDispatchLogRes, err error) {
|
||||
res = new(servmsg.CronDispatchLogRes)
|
||||
res.DispatchLogModel, err = service.SysCron().DispatchLog(ctx, req.DispatchLogInp)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user