add router sfor get donate reponse inner and outer for client and streameer
This commit is contained in:
parent
effb308ee9
commit
41e81b3b7f
@ -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
|
||||
|
@ -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"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user