liuxiaolong
2020-08-06 dbc843d0b37f786fb816131bcc7ebca86dbe72e9
main.go
@@ -2,6 +2,7 @@
import (
   "car-service/controllers"
   "car-service/models"
   _ "car-service/routers"
   "github.com/astaxie/beego"
)
@@ -11,6 +12,7 @@
      beego.BConfig.WebConfig.DirectoryIndex = true
      beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
   }
   models.InitDb()
   controllers.Schedule()
   go controllers.ComputeSpaceLeftRealTime()
   beego.Run()