router.go 922 B

12345678910111213141516171819202122
  1. package routers
  2. import (
  3. "Cold_Monitor/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. prefix := ""
  8. // 设备管理
  9. beego.Router(prefix+"/Device/Add", &controllers.MainController{}, "*:Device_Add") //
  10. beego.Router(prefix+"/Device/Pu", &controllers.MainController{}, "*:Device_Pu") //
  11. beego.Router(prefix+"/Device/List", &controllers.MainController{}, "*:Device_List") //
  12. beego.Router(prefix+"/Device/Delete", &controllers.MainController{}, "*:Device_Del") //
  13. // 控制组
  14. beego.Router(prefix+"/ControlGroup/Add", &controllers.MainController{}, "*:ControlGroupAdd") //
  15. beego.Router(prefix+"/ControlGroup/Pu", &controllers.MainController{}, "*:ControlGroupPu") //
  16. beego.Router(prefix+"/ControlGroup/List", &controllers.MainController{}, "*:ControlGroup_List") //
  17. beego.Router(prefix+"/ControlGroup/Delete", &controllers.MainController{}, "*:ControlGroupDel") //
  18. }