From fb272e7a176354ca2f0d4aa5cdb8b9391b849957 Mon Sep 17 00:00:00 2001 From: Pasha Date: Fri, 6 Jun 2025 17:05:34 +0300 Subject: [PATCH] update quiz repo --- model/gigachat.go | 2 +- repository/quiz/quiz.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/model/gigachat.go b/model/gigachat.go index 908b23b..1cd8c41 100644 --- a/model/gigachat.go +++ b/model/gigachat.go @@ -42,7 +42,7 @@ var EmptyResponseErrorGigaChat = errors.New("empty response from GigaChat try ag type GigaChatAudience struct { ID int64 `json:"id"` QuizID int64 `json:"quiz_id"` - Sex int `json:"sex"` // 0 - female, 1 - male, 2 - not sex + Sex int32 `json:"sex"` // 0 - female, 1 - male, 2 - not sex Age string `json:"age"` Deleted bool `json:"deleted"` CreatedAt int64 `json:"created_at"` diff --git a/repository/quiz/quiz.go b/repository/quiz/quiz.go index 752c886..ec24a89 100644 --- a/repository/quiz/quiz.go +++ b/repository/quiz/quiz.go @@ -664,7 +664,7 @@ func (r *QuizRepository) TemplateCopy(ctx context.Context, accountID, qID string type DepsCreateQuizAudience struct { QuizID int64 `json:"quiz_id"` - Sex bool `json:"sex"` // false - female, true - male + Sex int32 `json:"sex"` // 0 - female, 1 - male, 2 - not sex Age string `json:"age"` }