main.go @@ -15,6 +15,7 @@ beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger" } models.InitDb() controllers.InitRestriction() controllers.Schedule() go controllers.ComputeSpaceLeftRealTime() //每天同步海康数据,看人员id是否有发生变化