...
|
...
|
@@ -2,12 +2,13 @@ package main |
|
|
|
|
|
import (
|
|
|
"github.com/astaxie/beego"
|
|
|
_ "github.com/go-sql-driver/mysql"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/ability/protocol"
|
|
|
_ "gitlab.fjmaimaimai.com/mmm-go/ability/routers"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/gocomm/config"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/orm"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/redis"
|
|
|
_ "github.com/go-sql-driver/mysql"
|
|
|
)
|
|
|
|
|
|
func init(){
|
...
|
...
|
@@ -30,6 +31,7 @@ func main() { |
|
|
defer func(){
|
|
|
log.Info("app on stop!")
|
|
|
}()
|
|
|
protocol.InitMessageCode()
|
|
|
log.Info("app on start!")
|
|
|
log.Info("Beego Run Mode:",beego.BConfig.RunMode)
|
|
|
beego.Run()
|
...
|
...
|
|