package main import ( "github.com/astaxie/beego" _ "github.com/george518/PPGo_Job/mail" "github.com/george518/PPGo_Job/models" _ "github.com/george518/PPGo_Job/routers" "os" ) const ( VERSION = "1.0.0" ) func init() { //初始化数据模型 PP_PATH,_ := os.Getwd() CONFIG := PP_PATH + "/config/app.conf" beego.LoadAppConfig("ini", CONFIG) models.Init() } func main() { beego.Run() }