change field rule type

This commit is contained in:
Pavel 2024-06-28 10:18:42 +03:00
parent fe41395231
commit da12f58920

@ -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 {