main.go 582B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package main
  2. import (
  3. _ "Data_Upload_Api/routers"
  4. "Data_Upload_Api/service"
  5. "Data_Upload_Api/service/city"
  6. "github.com/astaxie/beego"
  7. )
  8. func init() {
  9. service.ConnectDB()
  10. }
  11. func main() {
  12. //city.BeginAutoJob()
  13. //var ids []int64
  14. //ids = append(ids,8420)
  15. //ids = append(ids,28202)
  16. //ids = append(ids,28310)
  17. //city.SyncToSzblgpYxxxzx()
  18. //city.SyncToSzbltmp()
  19. //city.SyncToSzblgpYxxxzx()
  20. //city.SyncToSzzxtmp()
  21. //city.SyncToSzblbrYxxxzxtmpp()
  22. //city.SyncToSzblpg()
  23. //city.SyncToSzblgpYxxxzx()
  24. // 创建一个新的调度器
  25. city.SyncToSzblpg()
  26. beego.Run()
  27. }