beego.go 549 字节
package beego

import (
	"github.com/astaxie/beego"
	"github.com/linmadan/egglib-go/web/beego/filters"
	. "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/log"
	_ "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/port/beego/routers"
	_ "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/port/beego/routers/manage"
)

func init() {
	beego.InsertFilter("/*", beego.BeforeExec, filters.CreateRequestBodyFilter())
	beego.InsertFilter("/*", beego.BeforeExec, CreateRequstLogFilter(Logger))
	beego.InsertFilter("/*", beego.AfterExec, CreateResponseLogFilter(Logger), false)
}