func podGet(c echo.Context) error { var arg = new(types.GetParams) arg.Region = c.QueryParam("region") arg.ParentId = c.QueryParam("appid") arg.Id = c.QueryParam("id") var pod = new(types.Pod) err := podHandler.Get(arg, pod) if err != nil { return SendData(c, http.StatusNotFound, pod) } return SendData(c, http.StatusOK, pod) }