12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- package routers
- import (
- "bzd_server/controllers"
- beego "github.com/beego/beego/v2/server/web"
- )
- func init() {
- // -----------网关接口-----------
- // 添加网关
- //beego.Router("/API/A_Device_List", &controllers.DeviceController{}, "*:A_Device_List") // *全部; get,post:
- //// 添加网关
- //beego.Router("/API/Add_A_Device", &controllers.DeviceController{}, "*:Add_A_Device") // *全部; get,post:
- //// 修改网关
- //beego.Router("/API/Up_A_Device", &controllers.DeviceController{}, "*:Up_A_Device") // *全部; get,post:
- //// 删除网关
- //beego.Router("/API/Delete_A_Device", &controllers.DeviceController{}, "*:Delete_A_Device") // *全部; get,post:
- // 用户 - 微信授权
- //beego.Router("/", &controllers.AdminController{}, "*:Login")
- //// 网关 WebSocket
- //beego.Router("/ws/join", &WebSocket.WebSocketController{}, "get:Join")
- //
- //
- //beego.Router("/UpFile", &controllers.UpFileController{}, "*:UpFile") // *全部; get,post:
- //
- //
- //beego.Router("/Login", &controllers.AdminController{}, "*:Login") // *全部; get,post:
- //beego.Router("/Login_verification", &controllers.AdminController{}, "*:Login_verification") // *全部; get,post:
- //
- //
- //beego.Router("/Index", &controllers.AdminController{}, "*:Index")
- //beego.Router("/Home", &controllers.AdminController{}, "*:Home")
- //
- //beego.Router("/Nows_rend", &controllers.AdminController{}, "*:Nows_rend") // 获取未读消息
- //// 日志
- //beego.Router("/System/Logs", &controllers.LogsController{}, "*:List") // 获取未读消息
- //
- //
- //// 微信服务端
- //beego.Router("/Wx/Wx_handler", &controllers.WxController{}, "*:Wx_handler") // 获取未读消息
- //beego.Router("/Wx/Wx_handler", &controllers.WxController{}, "*:Wx") // 获取未读消息
- // 模板路由
- beego.Router("/Template/List_html", &controllers.TemplateController{}, "*:List_html") // 获取未读消息
- beego.Router("/Template/List_", &controllers.TemplateController{}, "*:List_") // 获取未读消息
- beego.Router("/Template/List", &controllers.TemplateController{}, "*:List") // 获取未读消息
- beego.Router("/Template/Get", &controllers.TemplateController{}, "*:Get") // 获取未读消息
- beego.Router("/Template/Add", &controllers.TemplateController{}, "*:Add") // 获取未读消息
- beego.Router("/Template/Up", &controllers.TemplateController{}, "*:Up") // 获取未读消息
- beego.Router("/Template/Del", &controllers.TemplateController{}, "*:Del") // 获取未读消息
- }
|