79 lines
2.1 KiB
Go
79 lines
2.1 KiB
Go
package leads
|
|
|
|
import "surdeus.su/core/amo/common"
|
|
|
|
type Lead struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"name,omitempty"`
|
|
Price int `json:"price,omitempty"`
|
|
ResponsibleUserId int `json:"responsible_user_id,omitempty"`
|
|
GroupId int `json:"group_id,omitempty"`
|
|
StatusId int `json:"status_id,omitempty"`
|
|
PipelineId int `json:"pipeline_id,omitempty"`
|
|
LossReasonId int `json:"loss_reason_id,omitempty"`
|
|
SourceId interface{} `json:"source_id,omitempty"`
|
|
CreatedBy int `json:"created_by,omitempty"`
|
|
UpdatedBy int `json:"updated_by,omitempty"`
|
|
CreatedAt int `json:"created_at,omitempty"`
|
|
UpdatedAt int `json:"updated_at,omitempty"`
|
|
ClosedAt int `json:"closed_at,omitempty"`
|
|
ClosestTaskAt interface{} `json:"closest_task_at,omitempty"`
|
|
IsDeleted bool `json:"is_deleted,omitempty"`
|
|
CustomFieldsValues []common.CustomFieldsValue `json:"custom_fields_values,omitempty"`
|
|
Score interface{} `json:"score,omitempty"`
|
|
AccountId int `json:"account_id,omitempty"`
|
|
IsPriceModifiedByRobot bool `json:"is_price_modified_by_robot,omitempty"`
|
|
Links Links `json:"_links,omitempty"`
|
|
Embedded Embedded `json:"_embedded,omitempty"`
|
|
}
|
|
|
|
type Self struct {
|
|
Href string `json:"href"`
|
|
}
|
|
|
|
type Links struct {
|
|
Self Self `json:"self"`
|
|
}
|
|
|
|
type Tags struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type Metadata struct {
|
|
Quantity int `json:"quantity"`
|
|
CatalogId int `json:"catalog_id"`
|
|
}
|
|
|
|
type CatalogElements struct {
|
|
Id int `json:"id"`
|
|
Metadata Metadata `json:"metadata"`
|
|
}
|
|
|
|
type LossReason struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"name"`
|
|
Sort int `json:"sort"`
|
|
CreatedAt int `json:"created_at"`
|
|
UpdatedAt int `json:"updated_at"`
|
|
Links Links `json:"_links"`
|
|
}
|
|
|
|
type Companies struct {
|
|
Id int `json:"id"`
|
|
Links Links `json:"_links"`
|
|
}
|
|
|
|
type Contacts struct {
|
|
Id int `json:"id"`
|
|
IsMain bool `json:"is_main"`
|
|
Links Links `json:"_links"`
|
|
}
|
|
|
|
type Embedded struct {
|
|
Tags []*Tags `json:"tags"`
|
|
CatalogElements []*CatalogElements `json:"catalog_elements"`
|
|
LossReason []*LossReason `json:"loss_reason"`
|
|
Companies []*Companies `json:"companies"`
|
|
Contacts []*Contacts `json:"contacts"`
|
|
}
|