amocrm/internal/models/rule.go

32 lines
1.1 KiB
Go
Raw Normal View History

2024-04-08 08:20:10 +00:00
package models
type Rule struct {
2024-04-16 19:10:53 +00:00
/* - айдишник в нашей системе*/
ID int `json:"ID"`
/* - связь с аккаунтом в интеграции амо id в амо*/
Accountid int `json:"AccountID"`
2024-04-08 08:20:10 +00:00
/* - айдишник опроса*/
Quizid int `json:"QuizID"`
2024-04-16 19:10:53 +00:00
/* - айдишник ответственного за сделку*/
Performerid int `json:"PerformerID"`
/* - айдишник воронки*/
Pipelineid int `json:"PipelineID"`
2024-04-08 08:20:10 +00:00
/* - айдишник этапа*/
Stepid int `json:"StepID"`
/* - список UTM для этого опроса*/
Utms []int `json:"UTMs"`
/* - правила заполнения полей сущностей в амо*/
Fieldsrule Fieldsrule `json:"FieldsRule"`
2024-04-16 19:10:53 +00:00
/* - флаг мягкого удаления*/
Deleted bool `json:"Deleted"`
/* - таймштамп создания воронки в нашей системе*/
Createdat int `json:"CreatedAt"`
2024-04-08 08:20:10 +00:00
}
2024-04-08 08:37:12 +00:00
type Fieldsrule struct {
Lead []FieldRule `json:"Lead"`
Contact []FieldRule `json:"Contact"`
Company []FieldRule `json:"Company"`
Customer []FieldRule `json:"Customer"`
}