123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- package routers
- import (
- "ColdP_server/controllers"
- beego "github.com/beego/beego/v2/server/web"
- )
- func init() {
- //设备管理
- beego.Router("/Device/DeviceManager_html", &controllers.DeviceController{}, "*:DeviceManagerHtml")
- //获取分类数据
- beego.Router("/Device/CompanyClass", &controllers.DeviceController{}, "*:CompanyClass")
- //设备列表
- beego.Router("/Device/DeviceList", &controllers.DeviceController{}, "*:DeviceList")
- //数据重传
- beego.Router("/Device/DataRepeat", &controllers.DeviceController{}, "POST:DataRepeat")
- //数据偏差值读取
- beego.Router("/Device/ReadDeviation", &controllers.DeviceController{}, "POST:ReadDeviation")
- //数据偏差值写入
- beego.Router("/Device/WriteDeviation", &controllers.DeviceController{}, "POST:WriteDeviation")
- //数据偏差值读取
- beego.Router("/Device/ReadSensor", &controllers.DeviceController{}, "POST:ReadSensor")
- //数据偏差值写入
- beego.Router("/Device/WriteSensor", &controllers.DeviceController{}, "POST:WriteSensor")
- //分页
- beego.Router("/Device/DeviceWarning_page", &controllers.DeviceController{}, "*:DeviceWarning_List_html")
- beego.Router("/Device/DeviceWarning_waraning", &controllers.DeviceController{}, "*:GetWarningtype")
- //批量删除
- beego.Router("/Device/DeviceWarning_dels", &controllers.DeviceController{}, "*:DeviceWarning_DelS")
- //修改报警
- beego.Router("/Device/DeviceWarningUpdate", &controllers.DeviceController{}, "*:DeviceWarningUpdate")
- beego.Router("/Device/DeviceWarningAdd", &controllers.DeviceController{}, "*:DeviceWarningAdd")
- //复制添加
- beego.Router("/Device/Device_Copy", &controllers.DeviceController{}, "*:Device_Copy")
- beego.Router("/Device/DeviceWarning_List_html", &controllers.DeviceController{}, "*:DeviceWarning_List_html") // 获取未读消息
- //beego.Router("/Device/DeviceWarning_List", &controllers.DeviceController{}, "*:DeviceWarning_List") // 获取未读消息
- beego.Router("/Device/DeviceWarning_", &controllers.DeviceController{}, "*:DeviceWarning_") // 获取未读消息
- //beego.Router("/Device/DeviceWarning_log", &controllers.DeviceController{}, "*:DeviceWarning_log") // 获取未读消息
- //beego.Router("/Device/DeviceWarning_M", &controllers.DeviceController{}, "*:DeviceWarning_M") // 获取未读消息
- beego.Router("/Device/DeviceWarning_Post", &controllers.DeviceController{}, "*:DeviceWarning_Post") // 获取未读消息
- //beego.Router("/Device/DeviceWarning_Data_Excel", &controllers.DeviceController{}, "*:DeviceWarning_Data_Excel") // 获取未读消息
- beego.Router("/Device/DeviceWarning_Del", &controllers.DeviceController{}, "*:DeviceWarning_Del") // 获取未读消息
- //根据pid获取sn
- beego.Router("/Device/DeviceWarning_ALL_SN", &controllers.DeviceController{}, "*:GetDeviceALLSN")
- //根据sn获取tid
- beego.Router("/Device/DeviceWarning_ALL_TID", &controllers.DeviceController{}, "*:GetDeviceALLTID")
- //beego.Router("/Device/DeviceWarningListT_Tips", &controllers.DeviceController{}, "*:DeviceWarningList_T_Tips") // 获取未读消息
- }
|