MSP-8974 fix

This commit is contained in:
chashintv committed 2026-11-20 18:43:43 +03:00
1 parent 47cb584800
commit 05abc14077
15 files changed
+360 -330

No files matched your search

+12 -11
View File
@@ -24,17 +24,18 @@ func NewUiSettings(service UiSettingsService) UiSettings {
}
// UiOauthSettings
// @Tags ui_settings
// @Summary Получение настроек для ui для авторизации через OAuth
// @Description Получение настроек для ui для авторизации через OAuth
// @Accept json
// @Produce json
// @Param body body domain.ClientNameRequest true "Тело запроса"
// @Success 200 {object} domain.UiOauthSetting
// @Failure 400 {object} apierrors.Error
// @Failure 401 {object} apierrors.Error "Неизвестное название клиента"
// @Failure 500 {object} apierrors.Error
// @Router /ui_settings/oauth [POST]
//
// @Tags ui_settings
// @Summary Получение настроек для ui для авторизации через OAuth
// @Description Получение настроек для ui для авторизации через OAuth
// @Accept json
// @Produce json
// @Param body body domain.ClientNameRequest true "Тело запроса"
// @Success 200 {object} domain.UiOauthSetting
// @Failure 400 {object} apierrors.Error
// @Failure 401 {object} apierrors.Error "Неизвестное название клиента"
// @Failure 500 {object} apierrors.Error
// @Router /ui_settings/oauth [POST]
func (c UiSettings) OauthSettings(ctx context.Context, req domain.ClientNameRequest) (*domain.UiOauthSetting, error) {
resp, err := c.service.OauthSettings(ctx, req)
switch {