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