refactor🎨 优化Context设置方法
This commit is contained in:
1 parent
abcdf880fd
commit
70998c424d
6 files changed
+79
-85
No files matched your search
@@ -46,7 +46,7 @@ func (e SysJob) RemoveJobForService(c *gin.Context) {
|
||||
|
||||
// StartJobForService 启动job service实现
|
||||
func (e SysJob) StartJobForService(c *gin.Context) {
|
||||
e.SetContext(c)
|
||||
e.MakeContext(c)
|
||||
log := e.GetLogger()
|
||||
db, err := e.GetOrm()
|
||||
if err != nil {
|
||||
@@ -71,4 +71,4 @@ func (e SysJob) StartJobForService(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
e.OK(nil, s.Msg)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user