main.go 426B

12345678910111213141516171819202122
  1. package main
  2. import (
  3. _ "Xcx_New/routers"
  4. "Xcx_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. //service.BeginAutoCreateStaffScheduleJob()
  16. beego.BConfig.WebConfig.Session.SessionGCMaxLifetime = 60
  17. beego.Run()
  18. }