VerifyTemplate.go 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package routers
  2. import (
  3. "bzd_server/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. // -----------网关接口-----------
  8. // 添加网关
  9. //beego.Router("/API/A_Device_List", &controllers.DeviceController{}, "*:A_Device_List") // *全部; get,post:
  10. //// 添加网关
  11. //beego.Router("/API/Add_A_Device", &controllers.DeviceController{}, "*:Add_A_Device") // *全部; get,post:
  12. //// 修改网关
  13. //beego.Router("/API/Up_A_Device", &controllers.DeviceController{}, "*:Up_A_Device") // *全部; get,post:
  14. //// 删除网关
  15. //beego.Router("/API/Delete_A_Device", &controllers.DeviceController{}, "*:Delete_A_Device") // *全部; get,post:
  16. // 用户 - 微信授权
  17. //beego.Router("/", &controllers.AdminController{}, "*:Login")
  18. //// 网关 WebSocket
  19. //beego.Router("/ws/join", &WebSocket.WebSocketController{}, "get:Join")
  20. //
  21. //
  22. //beego.Router("/UpFile", &controllers.UpFileController{}, "*:UpFile") // *全部; get,post:
  23. //
  24. //
  25. //beego.Router("/Login", &controllers.AdminController{}, "*:Login") // *全部; get,post:
  26. //beego.Router("/Login_verification", &controllers.AdminController{}, "*:Login_verification") // *全部; get,post:
  27. //
  28. //
  29. //beego.Router("/Index", &controllers.AdminController{}, "*:Index")
  30. //beego.Router("/Home", &controllers.AdminController{}, "*:Home")
  31. //
  32. //beego.Router("/Nows_rend", &controllers.AdminController{}, "*:Nows_rend") // 获取未读消息
  33. //// 日志
  34. //beego.Router("/System/Logs", &controllers.LogsController{}, "*:List") // 获取未读消息
  35. //
  36. //
  37. //// 微信服务端
  38. //beego.Router("/Wx/Wx_handler", &controllers.WxController{}, "*:Wx_handler") // 获取未读消息
  39. //beego.Router("/Wx/Wx_handler", &controllers.WxController{}, "*:Wx") // 获取未读消息
  40. // 模板路由
  41. beego.Router("/Template/List_html", &controllers.TemplateController{}, "*:List_html") // 获取未读消息
  42. beego.Router("/Template/List_", &controllers.TemplateController{}, "*:List_") // 获取未读消息
  43. beego.Router("/Template/List", &controllers.TemplateController{}, "*:List") // 获取未读消息
  44. beego.Router("/Template/Get", &controllers.TemplateController{}, "*:Get") // 获取未读消息
  45. beego.Router("/Template/Add", &controllers.TemplateController{}, "*:Add") // 获取未读消息
  46. beego.Router("/Template/Up", &controllers.TemplateController{}, "*:Up") // 获取未读消息
  47. beego.Router("/Template/Del", &controllers.TemplateController{}, "*:Del") // 获取未读消息
  48. }