liujiandao
2023-10-21 26a2ae9619dfff4c43487ca39307c06be635c23f
models/db.go
@@ -85,6 +85,8 @@
      //Product{},
      ProductCategory{},
      Material{},
      LocationProduct{},
      LocationProductAmount{},
   )
   return err
}
@@ -96,6 +98,7 @@
func InsertDefaultData() {
   models := []interface{}{
      NewDepartmentSearch(),
      NewLocationSearch(),
   }
   for _, model := range models {
      if id, ok := model.(InitDefaultData); ok {