refactor🎨 优化Context设置方法

This commit is contained in:
wenjianzhang committed 2021-05-12 18:47:29 +08:00
1 parent abcdf880fd
commit 70998c424d
6 files changed
+79 -85

No files matched your search

+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)
}
}