作者 yangfu

提示修改

  1 +package routers
  2 +
  3 +import (
  4 + "github.com/astaxie/beego"
  5 + "github.com/astaxie/beego/context/param"
  6 +)
  7 +
  8 +func init() {
  9 +
  10 + beego.GlobalControllerRouter["opp/controllers:H5Controller"] = append(beego.GlobalControllerRouter["opp/controllers:H5Controller"],
  11 + beego.ControllerComments{
  12 + Method: "Announcement",
  13 + Router: `/announcement`,
  14 + AllowHTTPMethods: []string{"post"},
  15 + MethodParams: param.Make(),
  16 + Params: nil})
  17 +
  18 + beego.GlobalControllerRouter["opp/controllers:H5Controller"] = append(beego.GlobalControllerRouter["opp/controllers:H5Controller"],
  19 + beego.ControllerComments{
  20 + Method: "AnnouncementSubmit",
  21 + Router: `/announcementSubmit`,
  22 + AllowHTTPMethods: []string{"post"},
  23 + MethodParams: param.Make(),
  24 + Params: nil})
  25 +
  26 +}