feat: 新增预警定时扫描器,移除附件归档字段并为角色表补充更新时间
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
package ent
|
||||
|
||||
import (
|
||||
"bj_power_wms/ent/alert"
|
||||
"bj_power_wms/ent/alertrule"
|
||||
"bj_power_wms/ent/attachment"
|
||||
"bj_power_wms/ent/backuprecord"
|
||||
"bj_power_wms/ent/eventlog"
|
||||
@@ -94,6 +96,8 @@ var (
|
||||
func checkColumn(t, c string) error {
|
||||
initCheck.Do(func() {
|
||||
columnCheck = sql.NewColumnCheck(map[string]func(string) bool{
|
||||
alert.Table: alert.ValidColumn,
|
||||
alertrule.Table: alertrule.ValidColumn,
|
||||
attachment.Table: attachment.ValidColumn,
|
||||
backuprecord.Table: backuprecord.ValidColumn,
|
||||
eventlog.Table: eventlog.ValidColumn,
|
||||
|
||||
Reference in New Issue
Block a user