ns1 := beego.NewNamespace("/t",
beego.NSNamespace("/device",
beego.NSInclude(
&terController.BusDevicesController{},
),
),
)
ns2 := beego.NewNamespace("/h",
beego.NSNamespace("/bill",
beego.NSInclude(
&hotelControllers.BusHotelActController{},
),
),
)
beego.AddNamespace(ns1)
beego.AddNamespace(ns2)
有疑问加站长微信联系(非本文作者)