main.go 502B

12345678910111213141516171819202122232425
  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. //service.BeginAutoCreateStaffScheduleJob()
  16. //service.BeginAutoCreateDrugJob()
  17. //service.BeginAutoCreateStockJob()
  18. //beego.BConfig.WebConfig.Session.SessionGCMaxLifetime = 6000
  19. beego.Run()
  20. }