main.go 255B

12345678910111213141516171819
  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. city.SyncToLhblYxxxzx()
  14. beego.Run()
  15. }