package controllers_join import ( "boiler-go/controllers" models_join "boiler-go/models/join" "encoding/json" "net/http" "github.com/dabory/abango-rest" "github.com/labstack/echo" ) func MemberMenuPermPage(c echo.Context) error { v := c.Get("receiver").(controllers.CommonPageReq) y := c.Get("abango").(abango.Controller) vRet := &struct { models_join.MemberMenuPermPageRet }{} vRet.PageVars = v.PageVars if msg, err := vRet.GetMemberMenuPermPage(y.Db); err != nil { return c.String(607, msg) } ret, _ := json.Marshal(vRet) return c.JSONBlob(http.StatusOK, ret) }