add swag docs for all donat settings objects
This commit is contained in:
parent
f9325a1531
commit
effb308ee9
@ -179,6 +179,19 @@ func GetVoiceSettings(donatService model.DonatService) echo.HandlerFunc {
|
||||
}
|
||||
}
|
||||
|
||||
// UpdateVoiceSettings godoc
|
||||
// @Summary Update donat voice settings.
|
||||
// @Description Update donat voice settings.
|
||||
// @Tags Donate
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param request body model.UpdateVoiceSettings true "Update fields"
|
||||
// @Param background formData file false "Background image"
|
||||
// @Success 200 {string} string "Voice settings updated successfully"
|
||||
// @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 [patch]
|
||||
func UpdateVoiceSettings(donatService model.DonatService) echo.HandlerFunc {
|
||||
return func(c echo.Context) error {
|
||||
return nil
|
||||
@ -202,6 +215,19 @@ func GetFiltersSettings(donatService model.DonatService) echo.HandlerFunc {
|
||||
}
|
||||
}
|
||||
|
||||
// UpdateFiltersSettings godoc
|
||||
// @Summary Update donat filters settings.
|
||||
// @Description Update donat filters settings.
|
||||
// @Tags Donate
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param request body model.UpdateFilterSettings true "Update fields"
|
||||
// @Param background formData file false "Background image"
|
||||
// @Success 200 {string} string "Voice settings updated successfully"
|
||||
// @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 [patch]
|
||||
func UpdateFiltersSettings(donatService model.DonatService) echo.HandlerFunc {
|
||||
return func(c echo.Context) error {
|
||||
return nil
|
||||
@ -224,3 +250,20 @@ func GetModerationSettings(donatService model.DonatService) echo.HandlerFunc {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// UpdateModerationSettings godoc
|
||||
// @Summary Update donat moderation settings
|
||||
// @Description Update donat moderation settings
|
||||
// @Tags Donate
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} model.UpdateModeration "Update 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 [patch]
|
||||
func UpdateModerationSettings(donatService model.DonatService) echo.HandlerFunc {
|
||||
return func(c echo.Context) error {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user