refactor(task): 重构任务系统数据结构和处理逻辑

This commit is contained in:
1
2025-08-31 08:42:53 +00:00
parent 72693cee31
commit 334d0e136c
6 changed files with 70 additions and 49 deletions

View File

@@ -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")
}

View File

@@ -4,6 +4,7 @@ import (
"blazing/common/utils"
"blazing/modules/blazing/model"
"blazing/modules/blazing/service"
"context"
"fmt"
"sync"