main.go 544 B

123456789101112131415161718192021222324252627282930313233
  1. package jsonc
  2. import (
  3. "gadmin/internal/jsonc/conv"
  4. "github.com/sirupsen/logrus"
  5. )
  6. var (
  7. convertList = []conv.ConvertStrategy{
  8. //conv.Goods,
  9. //conv.Chapter,
  10. //conv.Role,
  11. //conv.PlayLevel,
  12. conv.Item,
  13. //conv.Antique,
  14. //conv.Talents,
  15. //conv.Equipment,
  16. //conv.Activity,
  17. //conv.Seven,
  18. //conv.LimitGift,
  19. //conv.Server,
  20. //conv.Treasure,
  21. //conv.GrandMaster,
  22. //conv.ExsKill,
  23. }
  24. )
  25. func Run(version string) {
  26. logrus.Info("init version:", version)
  27. for _, convert := range convertList {
  28. convert.Extract(version)
  29. }
  30. }