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