sync.go 312 B

12345678910111213141516171819
  1. package dao
  2. import (
  3. "demo/internal/model"
  4. "github.com/go-xorm/xorm"
  5. )
  6. func SyncTable(OutDB *xorm.Engine) error {
  7. return OutDB.Sync(
  8. new(model.DeliveryAndRecall),
  9. new(model.Receiver),
  10. new(model.Sim),
  11. new(model.Factory),
  12. new(model.Recall),
  13. new(model.Management),
  14. new(model.ManagementBh),
  15. )
  16. }