package routers import ( "ColdP_server/controllers" beego "github.com/beego/beego/v2/server/web" ) func init() { //获取数据列表页面,对应数据展示按钮 beego.Router("/Data/DataList_html", &controllers.DataController{}, "*:DataList_html") //获取传感器列表 beego.Router("/Data/Device_Sensor_List", &controllers.DataController{}, "POST:Device_Sensor_List") //获取更多传感器数据 beego.Router("Data/Device_Sensor_Data_More", &controllers.DataController{}, "POST:Device_Sensor_Data_More") //删除记录 beego.Router("/Data/Device_Sensor_List_Delete", &controllers.DataController{}, "POST:Device_Sensor_List_Delete") //更新记录 beego.Router("/Data/Device_Sensor_Update", &controllers.DataController{}, "POST:Device_Sensor_Update") //数据记录 beego.Router("/Data/Device_Sensor_Record", &controllers.DataController{}, "POST:Device_Sensor_Record") //数据导入 beego.Router("/Data/importData", &controllers.DataController{}, "POST:ImportData") beego.Router("/Data/EXportData", &controllers.DataController{}, "*:Device_Sensor_Data_Excel") //获取公司信息 beego.Router("/Data/GetCompanyBySn", &controllers.DataController{}, "GET:GetCompanyBySn") beego.Router("/Data/Device_Sensor_List_Delete_Time", &controllers.DataController{}, "*:Device_Sensor_List_Delete_Time") //数据生成 beego.Router("/Data/DataGenerator_html", &controllers.DataGeneratorController{}, "*:GeneratorHtml") //获取对应设备探头数据 beego.Router("/Data/DeviceSensorData", &controllers.DataGeneratorController{}, "POST:DeviceSensorData") //固定值偏移 beego.Router("/Data/UpdateFix", &controllers.DataGeneratorController{}, "POST:UpdateFix") // 删除数据 beego.Router("/Data/Delete", &controllers.DataGeneratorController{}, "POST:Delete") //随机偏移值 beego.Router("/Data/UpdateRand", &controllers.DataGeneratorController{}, "POST:UpdateRand") //复制数据到另一时间起点中 beego.Router("/Data/CopyFromPosition", &controllers.DataGeneratorController{}, "POST:CopyFromPosition") //数据补漏 beego.Router("/Data/RepairSensorData", &controllers.DataGeneratorController{}, "POST:RepairSensorData") beego.Router("/Data/RepairAllSensorData", &controllers.DataGeneratorController{}, "POST:RepairAllSensorData") //数据平滑 beego.Router("/Data/DataSensorDataSmooth", &controllers.DataGeneratorController{}, "POST:DataSensorDataSmooth") beego.Router("/Data/DataSensorDataTrend", &controllers.DataGeneratorController{}, "POST:DataSensorDataTrend") //数据导入 beego.Router("/Data/ImportSensorData", &controllers.DataGeneratorController{}, "POST:ImportSensorData") }