main.go 318B

12345678910111213141516171819202122
  1. package main
  2. import (
  3. _ "XT_New/routers"
  4. "XT_New/service"
  5. "github.com/astaxie/beego"
  6. )
  7. func init() {
  8. service.ConnectDB()
  9. }
  10. func main() {
  11. service.BeginAutoCreateWeekSchedulesJob()
  12. service.BeginAutoCreateWeekDisinfectionJob()
  13. //service.BeginAutoCreatePlanJob()
  14. //service.AutoClearSchedules()
  15. beego.Run()
  16. }