main.go 266B

123456789101112131415161718192021
  1. package main
  2. import (
  3. _ "Data_Upload_Api/routers"
  4. "Data_Upload_Api/service"
  5. "Data_Upload_Api/service/city"
  6. _ "Data_Upload_Api/service/city"
  7. "github.com/astaxie/beego"
  8. )
  9. func init() {
  10. service.ConnectDB()
  11. }
  12. func main() {
  13. city.BeginAutoJob()
  14. beego.Run()
  15. }