2018-11-06 12:14:09 +00:00
|
|
|
package test
|
|
|
|
|
|
|
|
import (
|
|
|
|
_ "multitenantStack/routers"
|
2018-11-14 17:49:49 +00:00
|
|
|
"multitenantStack/services/companydb"
|
|
|
|
"multitenantStack/services/tokenTools"
|
|
|
|
"time"
|
2018-11-06 12:14:09 +00:00
|
|
|
|
|
|
|
"github.com/astaxie/beego"
|
|
|
|
"github.com/astaxie/beego/orm"
|
|
|
|
_ "github.com/lib/pq"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2018-11-14 17:49:49 +00:00
|
|
|
tokenTools.InitTokenToolsService()
|
|
|
|
companydb.InitCompanyDBService()
|
|
|
|
orm.DefaultTimeLoc = time.UTC
|
2018-11-06 12:14:09 +00:00
|
|
|
|
|
|
|
beego.BConfig.WebConfig.DirectoryIndex = true
|
|
|
|
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
|
2018-11-14 17:49:49 +00:00
|
|
|
orm.Debug = true
|
2018-11-06 12:14:09 +00:00
|
|
|
}
|