diff --git a/model/amo.go b/model/amo.go index a0bdc0d..ddcb94e 100644 --- a/model/amo.go +++ b/model/amo.go @@ -151,10 +151,10 @@ type Rule struct { } type Fieldsrule struct { - Lead []FieldRule `json:"Lead"` - Contact []FieldRule `json:"Contact"` - Company []FieldRule `json:"Company"` - Customer []FieldRule `json:"Customer"` + Lead []FieldRule `json:"Lead"` + Contact []ContactRules `json:"Contact"` + Company []FieldRule `json:"Company"` + Customer []FieldRule `json:"Customer"` } type FieldRule struct { @@ -162,6 +162,11 @@ type FieldRule struct { Questionid map[int]int `json:"QuestionID"` // ключ id вопроса значение id астомного поля } +type ContactRules struct { + // ключ имя, значение id кастомного поля + ContactRuleMap map[string]int +} + type UTM struct { /* - айдишник в нашей системе Primary Key*/ ID int64 `json:"ID"`