forked from ebhomengo/niki
1
0
Fork 0

Compare commits

..

No commits in common. "stage/erfan/fix-get-kindbox-by-benefactor" and "develop" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View File

@ -1,7 +1,6 @@
package benefactorkindboxhandler
import (
"git.gocasts.ir/ebhomengo/niki/pkg/claim"
"net/http"
param "git.gocasts.ir/ebhomengo/niki/param/benefactor/kind_box"
@ -25,8 +24,6 @@ func (h Handler) Get(c echo.Context) error {
if bErr := c.Bind(&req); bErr != nil {
return echo.NewHTTPError(http.StatusBadRequest)
}
claims := claim.GetClaimsFromEchoContext(c)
req.BenefactorID = claims.UserID
resp, sErr := h.benefactorKindBoxSvc.Get(c.Request().Context(), req)
if sErr != nil {

View File

@ -1,8 +1,8 @@
package benefactorkindboxparam
type KindBoxGetRequest struct {
BenefactorID uint `json:"-"`
KindBoxID uint `param:"id"`
BenefactorID uint
KindBoxID uint
}
type KindBoxGetResponse struct {