update quiz repo

This commit is contained in:
Pasha 2025-06-06 17:05:34 +03:00
parent d9bb9204af
commit fb272e7a17
2 changed files with 2 additions and 2 deletions

@ -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"`

@ -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"`
}