router2.go
364 字节
package routers
import (
"oppmg/controllers"
"oppmg/middleware"
"github.com/astaxie/beego"
)
//从公司管理平台同步数据用
func init() {
nsPlatform := beego.NewNamespace("/platform",
beego.NSBefore(middleware.LogRequestData),
beego.NSRouter("/update", &controllers.PlatformController{}, "post:UpdateData"),
)
beego.AddNamespace(nsPlatform)
}