优化功能,通知功能,任务功能

This commit is contained in:
PandaGoAdmin
2021-12-24 16:50:06 +08:00
parent d71b0154f6
commit 816791f148
31 changed files with 521 additions and 72 deletions

View File

@@ -40,12 +40,12 @@ func InitJobRouter(router *gin.RouterGroup) {
})
stopJobLog := ctx.NewLogInfo("停止一个job")
job.DELETE(":jobId", func(c *gin.Context) {
job.GET("/stop/:jobId", func(c *gin.Context) {
ctx.NewReqCtxWithGin(c).WithLog(stopJobLog).Handle(jobApi.StopJobForService)
})
starteJobLog := ctx.NewLogInfo("开启一个job")
job.DELETE(":jobId", func(c *gin.Context) {
job.GET("/start/:jobId", func(c *gin.Context) {
ctx.NewReqCtxWithGin(c).WithLog(starteJobLog).Handle(jobApi.StartJobForService)
})
}