config.go 384 B

1234567891011121314151617181920212223242526
  1. package main
  2. type GlobalConf struct {
  3. MongoP MgoConf
  4. MongoB MgoConf
  5. Mongo181 MgoConf
  6. Env EnvConf
  7. }
  8. type MgoConf struct {
  9. Host string
  10. DB string
  11. Coll string // 查询表
  12. Username string
  13. Password string
  14. Size int
  15. Direct bool
  16. }
  17. type EnvConf struct {
  18. File string
  19. Sheet string
  20. Savecoll string
  21. BidFields []string
  22. NjFields []string
  23. }