Device.go 983 B

12345678910111213141516171819202122
  1. package routers
  2. import (
  3. "Yunlot/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. prefix := "/Device"
  8. beego.Router(prefix+"/Device/Create", &controllers.DeviceController{}, "*:Add") // 获取未读消息
  9. beego.Router(prefix+"/Device/Get", &controllers.DeviceController{}, "*:Get") // 获取未读消息
  10. beego.Router(prefix+"/Device/Push", &controllers.DeviceController{}, "*:Push") // 获取未读消息
  11. beego.Router(prefix+"/Device/List", &controllers.DeviceController{}, "*:List") // 获取未读消息
  12. beego.Router(prefix+"/Device/Update", &controllers.DeviceController{}, "*:Update") // 获取未读消息
  13. beego.Router(prefix+"/Device/Delete", &controllers.DeviceController{}, "*:Delete") // 获取未读消息
  14. beego.Router(prefix+"/Device/Data", &controllers.DeviceController{}, "*:DataList") // 获取未读消息
  15. beego.Router(prefix+"/Device/GetLog", &controllers.DeviceController{}, "*:GetLog") // 获取未读消息
  16. }