DeviceRouter.go 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package routers
  2. import (
  3. "ColdP_server/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. //设备管理
  8. beego.Router("/Device/DeviceManager_html", &controllers.DeviceController{}, "*:DeviceManagerHtml")
  9. //获取分类数据
  10. beego.Router("/Device/CompanyClass", &controllers.DeviceController{}, "*:CompanyClass")
  11. //设备列表
  12. beego.Router("/Device/DeviceList", &controllers.DeviceController{}, "*:DeviceList")
  13. //数据重传
  14. beego.Router("/Device/DataRepeat", &controllers.DeviceController{}, "POST:DataRepeat")
  15. //数据偏差值读取
  16. beego.Router("/Device/ReadDeviation", &controllers.DeviceController{}, "POST:ReadDeviation")
  17. //数据偏差值写入
  18. beego.Router("/Device/WriteDeviation", &controllers.DeviceController{}, "POST:WriteDeviation")
  19. //数据偏差值读取
  20. beego.Router("/Device/ReadSensor", &controllers.DeviceController{}, "POST:ReadSensor")
  21. //数据偏差值写入
  22. beego.Router("/Device/WriteSensor", &controllers.DeviceController{}, "POST:WriteSensor")
  23. //分页
  24. beego.Router("/Device/DeviceWarning_page", &controllers.DeviceController{}, "*:DeviceWarning_List_html")
  25. beego.Router("/Device/DeviceWarning_waraning", &controllers.DeviceController{}, "*:GetWarningtype")
  26. //批量删除
  27. beego.Router("/Device/DeviceWarning_dels", &controllers.DeviceController{}, "*:DeviceWarning_DelS")
  28. //修改报警
  29. beego.Router("/Device/DeviceWarningUpdate", &controllers.DeviceController{}, "*:DeviceWarningUpdate")
  30. beego.Router("/Device/DeviceWarningAdd", &controllers.DeviceController{}, "*:DeviceWarningAdd")
  31. //复制添加
  32. beego.Router("/Device/Device_Copy", &controllers.DeviceController{}, "*:Device_Copy")
  33. beego.Router("/Device/DeviceWarning_List_html", &controllers.DeviceController{}, "*:DeviceWarning_List_html") // 获取未读消息
  34. //beego.Router("/Device/DeviceWarning_List", &controllers.DeviceController{}, "*:DeviceWarning_List") // 获取未读消息
  35. beego.Router("/Device/DeviceWarning_", &controllers.DeviceController{}, "*:DeviceWarning_") // 获取未读消息
  36. //beego.Router("/Device/DeviceWarning_log", &controllers.DeviceController{}, "*:DeviceWarning_log") // 获取未读消息
  37. //beego.Router("/Device/DeviceWarning_M", &controllers.DeviceController{}, "*:DeviceWarning_M") // 获取未读消息
  38. beego.Router("/Device/DeviceWarning_Post", &controllers.DeviceController{}, "*:DeviceWarning_Post") // 获取未读消息
  39. //beego.Router("/Device/DeviceWarning_Data_Excel", &controllers.DeviceController{}, "*:DeviceWarning_Data_Excel") // 获取未读消息
  40. beego.Router("/Device/DeviceWarning_Del", &controllers.DeviceController{}, "*:DeviceWarning_Del") // 获取未读消息
  41. //根据pid获取sn
  42. beego.Router("/Device/DeviceWarning_ALL_SN", &controllers.DeviceController{}, "*:GetDeviceALLSN")
  43. //根据sn获取tid
  44. beego.Router("/Device/DeviceWarning_ALL_TID", &controllers.DeviceController{}, "*:GetDeviceALLTID")
  45. //beego.Router("/Device/DeviceWarningListT_Tips", &controllers.DeviceController{}, "*:DeviceWarningList_T_Tips") // 获取未读消息
  46. }