main.go 606 字节
package main

import (
	"github.com/astaxie/beego"
	"github.com/tiptok/gocomm/config"
	"github.com/tiptok/gocomm/pkg/log"
	"gitlab.fjmaimaimai.com/mmm-go/godevp/pkg/constant"
	_ "gitlab.fjmaimaimai.com/mmm-go/godevp/pkg/constant"
	_ "gitlab.fjmaimaimai.com/mmm-go/godevp/pkg/infrastructure/pg"
	_ "gitlab.fjmaimaimai.com/mmm-go/godevp/pkg/infrastructure/redis"
	_ "gitlab.fjmaimaimai.com/mmm-go/godevp/pkg/port/beego"
)

func main() {
	defer func() {

	}()
	beego.BConfig.CopyRequestBody = true

	log.InitLog(config.Logger{
		Filename: constant.LOG_File,
		Level:    constant.LOG_LEVEL,
	})
	beego.Run()
}