refactor(task): 重构任务系统数据结构和处理逻辑
This commit is contained in:
@@ -12,5 +12,5 @@ func GDBM(m IModel) *gdb.Model {
|
||||
|
||||
// DBM 根据model获取 *gdb.Model
|
||||
func DBM(m IModel) *gdb.Model {
|
||||
return g.DB(m.GroupName()).Model(m.TableName())
|
||||
return g.DB(m.GroupName()).Model(m.TableName()).FieldsEx("id")
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"blazing/common/utils"
|
||||
"blazing/modules/blazing/model"
|
||||
"blazing/modules/blazing/service"
|
||||
|
||||
"context"
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
Reference in New Issue
Block a user