config.go 299 B

12345678910111213141516171819202122
  1. package main
  2. type GlobalConf struct {
  3. MongoBase MgoConf
  4. MongoStd MgoConf
  5. Env EnvConf
  6. }
  7. type MgoConf struct {
  8. Host string
  9. DB string
  10. Coll string // 查询表
  11. Username string
  12. Password string
  13. Size int
  14. Direct bool
  15. }
  16. type EnvConf struct {
  17. Autoid int
  18. Seoid int
  19. }