package routers import ( "Yunlot/controllers" beego "github.com/beego/beego/v2/server/web" ) func init() { prefix := "/Device" beego.Router(prefix+"/Device/Create", &controllers.DeviceController{}, "*:Add") // 获取未读消息 beego.Router(prefix+"/Device/Get", &controllers.DeviceController{}, "*:Get") // 获取未读消息 beego.Router(prefix+"/Device/Push", &controllers.DeviceController{}, "*:Push") // 获取未读消息 beego.Router(prefix+"/Device/List", &controllers.DeviceController{}, "*:List") // 获取未读消息 beego.Router(prefix+"/Device/Update", &controllers.DeviceController{}, "*:Update") // 获取未读消息 beego.Router(prefix+"/Device/Delete", &controllers.DeviceController{}, "*:Delete") // 获取未读消息 beego.Router(prefix+"/Device/Data", &controllers.DeviceController{}, "*:DataList") // 获取未读消息 beego.Router(prefix+"/Device/GetLog", &controllers.DeviceController{}, "*:GetLog") // 获取未读消息 }