config.go 605 B

12345678910111213141516171819202122232425262728
  1. package config
  2. import . "app.yhyue.com/moapp/jybase/common"
  3. type config struct {
  4. RunTime string
  5. UpdateBathSize int
  6. InsertBathSize int
  7. SelectBathSize int
  8. SyncPool int
  9. SelectMgoUserPool int
  10. }
  11. type timeTask struct {
  12. Datetime string `json:"datetime"`
  13. User_mgo_mysql_id string `json:"user_mgo_mysql_id"`
  14. Raw_product_id int64 `json:"raw_product_id"`
  15. Dataexport_order_id int64 `json:"dataexport_order_id"`
  16. }
  17. var (
  18. Config *config
  19. TimeTask *timeTask
  20. )
  21. func init() {
  22. ReadConfig("./config.json", &Config)
  23. ReadConfig("./timetask.json", &TimeTask)
  24. }