main.go 328 B

1234567891011121314151617
  1. package main
  2. import (
  3. _ "eta/eta_data_init/routers"
  4. "eta/eta_data_init/services"
  5. beego "github.com/beego/beego/v2/server/web"
  6. )
  7. func main() {
  8. if beego.BConfig.RunMode == "dev" {
  9. beego.BConfig.WebConfig.DirectoryIndex = true
  10. beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
  11. }
  12. services.Task()
  13. beego.Run()
  14. }