add swagger for get routers for donat

This commit is contained in:
harold 2025-02-24 22:10:37 +05:00
parent 2d05ab2b55
commit f9325a1531
2 changed files with 33 additions and 2 deletions

View File

@ -162,6 +162,17 @@ func UpdateDonatePage(donatService model.DonatService) echo.HandlerFunc {
}
}
// GetVoiceSettings godoc
// @Summary Get donat voice settings
// @Description Get donat voice settings
// @Tags Donate
// @Accept json
// @Produce json
// @Success 200 {object} model.VoiceSettingsResponse "Current voice settings"
// @Failure 400 {object} echo.HTTPError "Bad request"
// @Failure 401 {object} echo.HTTPError "Unauthorized or expired token"
// @Failure 422 {object} echo.HTTPError "Validation error"
// @Router /voice-settings [get]
func GetVoiceSettings(donatService model.DonatService) echo.HandlerFunc {
return func(c echo.Context) error {
return nil
@ -174,6 +185,17 @@ func UpdateVoiceSettings(donatService model.DonatService) echo.HandlerFunc {
}
}
// GetFiltersSettings godoc
// @Summary Get donat filters settings
// @Description Get donat filters settings
// @Tags Donate
// @Accept json
// @Produce json
// @Success 200 {object} model.FilterSettingResponse "Current filters settings"
// @Failure 400 {object} echo.HTTPError "Bad request"
// @Failure 401 {object} echo.HTTPError "Unauthorized or expired token"
// @Failure 422 {object} echo.HTTPError "Validation error"
// @Router /filters-settings [get]
func GetFiltersSettings(donatService model.DonatService) echo.HandlerFunc {
return func(c echo.Context) error {
return nil
@ -186,6 +208,17 @@ func UpdateFiltersSettings(donatService model.DonatService) echo.HandlerFunc {
}
}
// GetModerationSettings godoc
// @Summary Get donat moderation settings
// @Description Get donat moderation settings
// @Tags Donate
// @Accept json
// @Produce json
// @Success 200 {object} model.ModerationResponse "Current moderation settings"
// @Failure 400 {object} echo.HTTPError "Bad request"
// @Failure 401 {object} echo.HTTPError "Unauthorized or expired token"
// @Failure 422 {object} echo.HTTPError "Validation error"
// @Router /moderation-settings [get]
func GetModerationSettings(donatService model.DonatService) echo.HandlerFunc {
return func(c echo.Context) error {
return nil

View File

@ -111,8 +111,6 @@ type UpdateDonatPage struct {
}
type VoiceSettingsResponse struct {
Id int `json:"id"`
StreamerID int `json:"streamerID"`
VoiceSpeed int `json:"voiceSpeed"`
Scenery string `json:"scenery"`
VoiceSoundPercent int `json:"voiceSoundPercent"`