diff --git a/internal/api/http/handlers/donat/donat.go b/internal/api/http/handlers/donat/donat.go index b8123bf..79d1233 100644 --- a/internal/api/http/handlers/donat/donat.go +++ b/internal/api/http/handlers/donat/donat.go @@ -118,12 +118,34 @@ func MarkDonatView(donatService model.DonatService) echo.HandlerFunc { } } +// GetInnerDonatePage godoc +// @Summary Get inner donate page info +// @Description Get inner donate page info +// @Tags Donate +// @Accept json +// @Produce json +// @Success 200 {object} model.InnerDonatePageResponse "Current donate page state" +// @Failure 400 {object} echo.HTTPError "Bad request" +// @Failure 401 {object} echo.HTTPError "Unauthorized or expired token" +// @Failure 422 {object} echo.HTTPError "Validation error" +// @Router /inner-donate-page [get] func GetInnerDonatePage(donatService model.DonatService) echo.HandlerFunc { return func(request echo.Context) error { return nil } } +// GetOuterDonatePage godoc +// @Summary Get outer donate page info +// @Description Get outer donate page info +// @Tags Donate +// @Accept json +// @Produce json +// @Success 200 {object} model.OuterDonatePageResponse "Current donate page state" +// @Failure 400 {object} echo.HTTPError "Bad request" +// @Failure 401 {object} echo.HTTPError "Unauthorized or expired token" +// @Failure 422 {object} echo.HTTPError "Validation error" +// @Router /outer-donate-page [get] func GetOuterDonatePage(donatService model.DonatService) echo.HandlerFunc { return func(request echo.Context) error { return nil diff --git a/internal/model/models.go b/internal/model/models.go index 738009c..a10c392 100644 --- a/internal/model/models.go +++ b/internal/model/models.go @@ -69,6 +69,20 @@ type Moderation struct { duration int `db:"duration"` } +type InnerDonatePageResponse struct { + Description string `json:"description"` + TextAfterDonat string `json:"textAfterDonat"` + PageBackground string `json:"pageBackground"` + Avatar string `json:"avatar"` + BackgroundImg string `json:"backgroundImg"` +} + +type OuterDonatePageResponse struct { + Login string `json:"login"` + OnLine string `json:"online"` + Description string `json:"description"` +} + type Filter struct { id int `db:"id"` streamerID int `db:"streamer_id"`