From da12f589207e66331b824fe8b242f6c4dec07098 Mon Sep 17 00:00:00 2001 From: Pavel Date: Fri, 28 Jun 2024 10:18:42 +0300 Subject: [PATCH] change field rule type --- model/amo.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/model/amo.go b/model/amo.go index 5a0dae0..7c088df 100644 --- a/model/amo.go +++ b/model/amo.go @@ -160,10 +160,10 @@ type TagsToAdd struct { } type Fieldsrule struct { - Lead []FieldRule `json:"Lead"` + Lead FieldRule `json:"Lead"` Contact ContactRules `json:"Contact"` - Company []FieldRule `json:"Company"` - Customer []FieldRule `json:"Customer"` + Company FieldRule `json:"Company"` + Customer FieldRule `json:"Customer"` } type FieldRule struct { @@ -174,6 +174,7 @@ type FieldRule struct { type ContactRules struct { // ключ имя, значение id кастомного поля ContactRuleMap map[string]int + Questionid map[int]int `json:"QuestionID"` // ключ id вопроса значение id астомного поля } type QuizContact struct {