修改敏感词过滤代码结构

This commit is contained in:
Rosy-zhudan
2019-08-19 10:27:04 +08:00
parent 9425f3c07a
commit dee9eea64a
9 changed files with 39 additions and 38 deletions

View File

@@ -53,7 +53,7 @@ func Init() {
orm.RegisterModel(&model.NewConfig{})
orm.RegisterModel(&model.CasbinRule{})
orm.RegisterModel(&model.SensitiveWords{})
orm.RegisterModel(&model.SensitiveWord{})
// create table
orm.RunSyncdb("default", false, true)
}