123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- package routers
- import (
- "Cold_Api/conf"
- "Cold_Api/controllers"
- beego "github.com/beego/beego/v2/server/web"
- )
- func init() {
- ns := beego.NewNamespace(conf.Version,
- // 设备报警
- beego.NSNamespace("/DeviceWarning",
- beego.NSRouter("/List", &controllers.DeviceController{}, "*:DeviceWarning_List"), // 告警列表
- beego.NSRouter("/List2", &controllers.DeviceController{}, "*:DeviceWarning_List2"), // 告警列表 - 跨月查询
- beego.NSRouter("/List_sse", &controllers.DeviceController{}, "*:DeviceWarning_List_Sse"), // 告警列表 - 跨月查询
- beego.NSRouter("/Get", &controllers.DeviceController{}, "*:DeviceWarning_Get"), // 获取告警
- beego.NSRouter("/Edit", &controllers.DeviceController{}, "*:DeviceWarning_Post"), // 修改告警 报警处理
- beego.NSRouter("/Del", &controllers.DeviceController{}, "*:DeviceWarning_Del"), // 删除告警
- beego.NSRouter("/ToExcel", &controllers.DeviceController{}, "*:DeviceWarning_Data_Excel"), // 导出excel
- beego.NSRouter("/ToExcel2", &controllers.DeviceController{}, "*:DeviceWarning_Data_Excel2"), // 导出excel
- beego.NSRouter("/DeviceSensor_List", &controllers.DeviceController{}, "*:Read_Warning_List_By_DS_T_type"), // 告警列表 - 小程序
- ),
- // 报警类型
- beego.NSNamespace("/WarningType",
- beego.NSRouter("/List_All", &controllers.DeviceController{}, "*:WarningType_List_All"), // 添加权限-告警类型列表
- beego.NSRouter("/Power_List", &controllers.DeviceController{}, "*:WarningType_Power_List_All"), // 报警搜索-告警类型列表
- ),
- // 报警发送
- beego.NSNamespace("/WarningSend",
- beego.NSRouter("/List", &controllers.DeviceController{}, "*:Read_WarningSend_List"), // 报警发送列表
- ),
- // 内部用户设备报警率
- beego.NSNamespace("/WarningRate",
- beego.NSRouter("/List", &controllers.DeviceController{}, "*:Read_WarningRate_List"), // 内部用户设备报警率列表
- beego.NSRouter("/User_List", &controllers.DeviceController{}, "*:Read_WarningRate_List"), // 内部用户设备报警率列表
- ),
- // 报警处理
- beego.NSNamespace("/WarningHandle",
- beego.NSRouter("/List", &controllers.DeviceController{}, "*:Read_WarningHandle_List"), // 内部用户设备报警率列表
- ),
- // 公司管理-设备报警
- beego.NSNamespace("/CompanyWarning",
- beego.NSRouter("/List", &controllers.DeviceController{}, "*:CompanyWarning_List"), // 告警列表
- beego.NSRouter("/List2", &controllers.DeviceController{}, "*:CompanyWarning_List2"), // 告警列表
- beego.NSRouter("/ToExcel", &controllers.DeviceController{}, "*:CompanyWarning_Data_Excel"), // 告警列表
- beego.NSRouter("/ToExcel2", &controllers.DeviceController{}, "*:CompanyWarning_Data_Excel2"), // 告警列表
- ),
- )
- beego.AddNamespace(ns)
- }
|