diff --git a/internal/api/http/handlers/donat/donat.go b/internal/api/http/handlers/donat/donat.go index 0f5839f..363a180 100644 --- a/internal/api/http/handlers/donat/donat.go +++ b/internal/api/http/handlers/donat/donat.go @@ -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 diff --git a/internal/model/models.go b/internal/model/models.go index 09dabea..738009c 100644 --- a/internal/model/models.go +++ b/internal/model/models.go @@ -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"`