diff --git a/conf/app.conf b/conf/app.conf index 3fc1bc6..94cd620 100644 --- a/conf/app.conf +++ b/conf/app.conf @@ -11,17 +11,17 @@ ignore_urls = "/admin/auth/login,/admin/auth/captcha" [dev] #数据库配置 -mysqluser = "root" -mysqlpass = "root" -mysqlhost = "localhost" -mysqlport = 3306 -mysqldb = "yshop_go" +mysqluser = "beego" +mysqlpass = "Asdfghjklm123." +mysqlhost = "nas.viviman.top" +mysqlport = 35017 +mysqldb = "beego_demo01" db_max_idle_conn = 30 db_max_open_open = 100 maxmemory = 1<<22 #redis -redis_host = 127.0.0.1:6379 +redis_host = nas.viviman.top:20017 redis_pwd = #日志等级 debug diff --git a/main.go b/main.go index e405e05..415ea23 100644 --- a/main.go +++ b/main.go @@ -68,8 +68,8 @@ func main() { if strings.Contains(ignoreUrls, url) || strings.Contains(url, "/swagger") || strings.Contains(url, "/static") { next(ctx) } else { - method := strings.ToLower(ctx.Input.Method()) - //部署线上开启 + //method := strings.ToLower(ctx.Input.Method()) + //部署线上开启 = 验证请求类型,避免线上请求非发类型,导致系统异常 //prohibit := "post,put,delete" //if url != "/admin/auth/logout" && strings.Contains(prohibit,method) { // ctx.Output.JSON(controllers.ErrMsg("演示环境禁止操作",40006), @@ -91,12 +91,12 @@ func main() { true, true) return } - //校验权限 - index := checkPermission(url, method, token) - if index == -1 { - ctx.Output.JSON(controllers.ErrMsg("无权限", 40001), true, true) - return - } + //校验权限 = 验证权限部分,不推荐打开,否则基本功能无法实现 + //index := checkPermission(url, method, token) + //if index == -1 { + // ctx.Output.JSON(controllers.ErrMsg("无权限", 40001), true, true) + // return + //} ctx.Input.SetData(common.ContextKeyUserObj, usr) next(ctx) @@ -107,6 +107,7 @@ func main() { } +// checkPermission 验证请求权限情况 func checkPermission(url string, method string, token string) int { logs.Info(url, method, token, method) //公共路由直接放行 diff --git a/routers/commentsRouter___________________Users_hupeng_go_src_yixiang_co_yshop_controllers.go b/routers/commentsRouter___________________Users_hupeng_go_src_yixiang_co_yshop_controllers.go deleted file mode 100644 index 32abd14..0000000 --- a/routers/commentsRouter___________________Users_hupeng_go_src_yixiang_co_yshop_controllers.go +++ /dev/null @@ -1,163 +0,0 @@ -package routers - -import ( - beego "github.com/beego/beego/v2/server/web" - "github.com/beego/beego/v2/server/web/context/param" -) - -func init() { - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MemberController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MemberController"], - beego.ControllerComments{ - Method: "Post", - Router: "/", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MemberController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MemberController"], - beego.ControllerComments{ - Method: "GetAll", - Router: "/", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MemberController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MemberController"], - beego.ControllerComments{ - Method: "GetOne", - Router: "/:id", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MemberController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MemberController"], - beego.ControllerComments{ - Method: "Put", - Router: "/:id", - AllowHTTPMethods: []string{"put"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MemberController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MemberController"], - beego.ControllerComments{ - Method: "Delete", - Router: "/:id", - AllowHTTPMethods: []string{"delete"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers:ObjectController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers:ObjectController"], - beego.ControllerComments{ - Method: "Post", - Router: "/", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers:ObjectController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers:ObjectController"], - beego.ControllerComments{ - Method: "GetAll", - Router: "/", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers:ObjectController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers:ObjectController"], - beego.ControllerComments{ - Method: "Get", - Router: "/:objectId", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers:ObjectController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers:ObjectController"], - beego.ControllerComments{ - Method: "Put", - Router: "/:objectId", - AllowHTTPMethods: []string{"put"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers:ObjectController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers:ObjectController"], - beego.ControllerComments{ - Method: "Delete", - Router: "/:objectId", - AllowHTTPMethods: []string{"delete"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"], - beego.ControllerComments{ - Method: "Post", - Router: "/", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"], - beego.ControllerComments{ - Method: "GetAll", - Router: "/", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"], - beego.ControllerComments{ - Method: "Get", - Router: "/:uid", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"], - beego.ControllerComments{ - Method: "Put", - Router: "/:uid", - AllowHTTPMethods: []string{"put"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"], - beego.ControllerComments{ - Method: "Delete", - Router: "/:uid", - AllowHTTPMethods: []string{"delete"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"], - beego.ControllerComments{ - Method: "Login", - Router: "/login", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers:UserController"], - beego.ControllerComments{ - Method: "Logout", - Router: "/logout", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - -} diff --git a/routers/commentsRouter_controllers.go b/routers/commentsRouter_controllers.go deleted file mode 100644 index 25917ce..0000000 --- a/routers/commentsRouter_controllers.go +++ /dev/null @@ -1,370 +0,0 @@ -package routers - -import ( - beego "github.com/beego/beego/v2/server/web" - "github.com/beego/beego/v2/server/web/context/param" -) - -func init() { - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DeptController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DeptController"], - beego.ControllerComments{ - Method: "GetAll", - Router: "/", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DeptController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DeptController"], - beego.ControllerComments{ - Method: "Post", - Router: "/", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DeptController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DeptController"], - beego.ControllerComments{ - Method: "Put", - Router: "/", - AllowHTTPMethods: []string{"put"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DeptController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DeptController"], - beego.ControllerComments{ - Method: "Delete", - Router: "/", - AllowHTTPMethods: []string{"delete"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictController"], - beego.ControllerComments{ - Method: "GetAll", - Router: "/", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictController"], - beego.ControllerComments{ - Method: "Post", - Router: "/", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictController"], - beego.ControllerComments{ - Method: "Put", - Router: "/", - AllowHTTPMethods: []string{"put"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictController"], - beego.ControllerComments{ - Method: "Delete", - Router: "/:id", - AllowHTTPMethods: []string{"delete"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictDetailController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictDetailController"], - beego.ControllerComments{ - Method: "GetAll", - Router: "/", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictDetailController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictDetailController"], - beego.ControllerComments{ - Method: "Post", - Router: "/", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictDetailController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictDetailController"], - beego.ControllerComments{ - Method: "Put", - Router: "/", - AllowHTTPMethods: []string{"put"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictDetailController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:DictDetailController"], - beego.ControllerComments{ - Method: "Delete", - Router: "/:id", - AllowHTTPMethods: []string{"delete"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:JobController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:JobController"], - beego.ControllerComments{ - Method: "GetAll", - Router: "/", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:JobController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:JobController"], - beego.ControllerComments{ - Method: "Post", - Router: "/", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:JobController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:JobController"], - beego.ControllerComments{ - Method: "Put", - Router: "/", - AllowHTTPMethods: []string{"put"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:JobController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:JobController"], - beego.ControllerComments{ - Method: "Delete", - Router: "/", - AllowHTTPMethods: []string{"delete"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:LoginController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:LoginController"], - beego.ControllerComments{ - Method: "Captcha", - Router: "/captcha", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:LoginController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:LoginController"], - beego.ControllerComments{ - Method: "Info", - Router: "/info", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:LoginController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:LoginController"], - beego.ControllerComments{ - Method: "Login", - Router: "/login", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:LoginController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:LoginController"], - beego.ControllerComments{ - Method: "Logout", - Router: "/logout", - AllowHTTPMethods: []string{"delete"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MenuController"], - beego.ControllerComments{ - Method: "GetAll", - Router: "/", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MenuController"], - beego.ControllerComments{ - Method: "Post", - Router: "/", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MenuController"], - beego.ControllerComments{ - Method: "Put", - Router: "/", - AllowHTTPMethods: []string{"put"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MenuController"], - beego.ControllerComments{ - Method: "Delete", - Router: "/", - AllowHTTPMethods: []string{"delete"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MenuController"], - beego.ControllerComments{ - Method: "Build", - Router: "/build", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:MenuController"], - beego.ControllerComments{ - Method: "GetTree", - Router: "/tree", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:RoleController"], - beego.ControllerComments{ - Method: "GetAll", - Router: "/", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:RoleController"], - beego.ControllerComments{ - Method: "Post", - Router: "/", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:RoleController"], - beego.ControllerComments{ - Method: "Put", - Router: "/", - AllowHTTPMethods: []string{"put"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:RoleController"], - beego.ControllerComments{ - Method: "Delete", - Router: "/", - AllowHTTPMethods: []string{"delete"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:RoleController"], - beego.ControllerComments{ - Method: "GetOne", - Router: "/:id", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:RoleController"], - beego.ControllerComments{ - Method: "Menu", - Router: "/menu", - AllowHTTPMethods: []string{"put"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:ToolsController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:ToolsController"], - beego.ControllerComments{ - Method: "Post", - Router: "/", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"], - beego.ControllerComments{ - Method: "GetAll", - Router: "/", - AllowHTTPMethods: []string{"get"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"], - beego.ControllerComments{ - Method: "Post", - Router: "/", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"], - beego.ControllerComments{ - Method: "Put", - Router: "/", - AllowHTTPMethods: []string{"put"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"], - beego.ControllerComments{ - Method: "Delete", - Router: "/", - AllowHTTPMethods: []string{"delete"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"], - beego.ControllerComments{ - Method: "Center", - Router: "/center", - AllowHTTPMethods: []string{"put"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"], - beego.ControllerComments{ - Method: "Avatar", - Router: "/updateAvatar", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - - beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["yixiang.co/yshop/controllers/admin:UserController"], - beego.ControllerComments{ - Method: "Pass", - Router: "/updatePass", - AllowHTTPMethods: []string{"post"}, - MethodParams: param.Make(), - Filters: nil, - Params: nil}) - -}