commentsRouter_controllers_ctrl_v1.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. package routers
  2. import (
  3. "github.com/astaxie/beego"
  4. "github.com/astaxie/beego/context/param"
  5. )
  6. func init() {
  7. beego.GlobalControllerRouter["gd_gateway/controllers/ctrl_v1:CenterController"] = append(beego.GlobalControllerRouter["gd_gateway/controllers/ctrl_v1:CenterController"],
  8. beego.ControllerComments{
  9. Method: "Vehicle",
  10. Router: `/query/:code`,
  11. AllowHTTPMethods: []string{"get"},
  12. MethodParams: param.Make(),
  13. Params: nil})
  14. beego.GlobalControllerRouter["gd_gateway/controllers/ctrl_v1:CenterController"] = append(beego.GlobalControllerRouter["gd_gateway/controllers/ctrl_v1:CenterController"],
  15. beego.ControllerComments{
  16. Method: "Service",
  17. Router: `/service/:code`,
  18. AllowHTTPMethods: []string{"get"},
  19. MethodParams: param.Make(),
  20. Params: nil})
  21. beego.GlobalControllerRouter["gd_gateway/controllers/ctrl_v1:CenterController"] = append(beego.GlobalControllerRouter["gd_gateway/controllers/ctrl_v1:CenterController"],
  22. beego.ControllerComments{
  23. Method: "VehicleLogin",
  24. Router: `/token`,
  25. AllowHTTPMethods: []string{"get"},
  26. MethodParams: param.Make(),
  27. Params: nil})
  28. }