add swagger for get routers for donat
This commit is contained in:
parent
2d05ab2b55
commit
f9325a1531
@ -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 {
|
func GetVoiceSettings(donatService model.DonatService) echo.HandlerFunc {
|
||||||
return func(c echo.Context) error {
|
return func(c echo.Context) error {
|
||||||
return nil
|
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 {
|
func GetFiltersSettings(donatService model.DonatService) echo.HandlerFunc {
|
||||||
return func(c echo.Context) error {
|
return func(c echo.Context) error {
|
||||||
return nil
|
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 {
|
func GetModerationSettings(donatService model.DonatService) echo.HandlerFunc {
|
||||||
return func(c echo.Context) error {
|
return func(c echo.Context) error {
|
||||||
return nil
|
return nil
|
||||||
|
@ -111,8 +111,6 @@ type UpdateDonatPage struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type VoiceSettingsResponse struct {
|
type VoiceSettingsResponse struct {
|
||||||
Id int `json:"id"`
|
|
||||||
StreamerID int `json:"streamerID"`
|
|
||||||
VoiceSpeed int `json:"voiceSpeed"`
|
VoiceSpeed int `json:"voiceSpeed"`
|
||||||
Scenery string `json:"scenery"`
|
Scenery string `json:"scenery"`
|
||||||
VoiceSoundPercent int `json:"voiceSoundPercent"`
|
VoiceSoundPercent int `json:"voiceSoundPercent"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user