refactor🎨 优化Context设置方法

This commit is contained in:
wenjianzhang
2021-05-12 18:47:29 +08:00
parent abcdf880fd
commit 70998c424d
6 changed files with 79 additions and 85 deletions
+2 -2
View File
@@ -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)
}
}