fix
This commit is contained in:
17
internal/models/query.go
Normal file
17
internal/models/query.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
// GetAllModels 数据库迁移用模型列表
|
||||
func GetAllModels() []interface{} {
|
||||
return []interface{}{
|
||||
&LogEvent{},
|
||||
&TrapDictionaryEntry{},
|
||||
&SyslogRule{},
|
||||
&TrapRule{},
|
||||
&TrapShield{},
|
||||
}
|
||||
}
|
||||
|
||||
// InitData 预留默认数据
|
||||
func InitData() error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user