12345678910111213141516171819202122 |
- package routers
- import (
- "Cold_Monitor/controllers"
- beego "github.com/beego/beego/v2/server/web"
- )
- func init() {
- prefix := ""
- // 设备管理
- beego.Router(prefix+"/Device/Add", &controllers.MainController{}, "*:Device_Add") //
- beego.Router(prefix+"/Device/Pu", &controllers.MainController{}, "*:Device_Pu") //
- beego.Router(prefix+"/Device/List", &controllers.MainController{}, "*:Device_List") //
- beego.Router(prefix+"/Device/Delete", &controllers.MainController{}, "*:Device_Del") //
- // 控制组
- beego.Router(prefix+"/ControlGroup/Add", &controllers.MainController{}, "*:ControlGroupAdd") //
- beego.Router(prefix+"/ControlGroup/Pu", &controllers.MainController{}, "*:ControlGroupPu") //
- beego.Router(prefix+"/ControlGroup/List", &controllers.MainController{}, "*:ControlGroup_List") //
- beego.Router(prefix+"/ControlGroup/Delete", &controllers.MainController{}, "*:ControlGroupDel") //
- }
|