amo/contacts/contacts.go

58 lines
1.9 KiB
Go
Raw Normal View History

2024-01-15 00:04:00 +03:00
package contacts
import "vultras.su/core/amo/common"
type Contact struct {
2024-01-15 00:20:13 +03:00
Id int `json:"id"`
2024-01-15 00:04:00 +03:00
Name string `json:"name,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
2024-01-15 00:20:13 +03:00
ResponsibleUserId int `json:"responsible_user_id,omitempty"`
GroupId int `json:"group_id,omitempty"`
2024-01-15 00:04:00 +03:00
CreatedBy int `json:"created_by,omitempty"`
UpdatedBy int `json:"updated_by,omitempty"`
CreatedAt int `json:"created_at,omitempty"`
UpdatedAt int `json:"updated_at,omitempty"`
ClosestTaskAt interface{} `json:"closest_task_at,omitempty"`
CustomFieldsValues []common.CustomFieldsValue `json:"custom_fields_values,omitempty"`
2024-01-15 00:20:13 +03:00
AccountId int `json:"account_id,omitempty"`
2024-01-15 00:04:00 +03:00
Links Links `json:"_links,omitempty"`
Embedded Embedded `json:"_embedded,omitempty"`
}
type Values struct {
Value string `json:"value"`
2024-01-15 00:20:13 +03:00
EnumId int `json:"enum_id"`
2024-01-15 00:04:00 +03:00
Enum string `json:"enum"`
}
type Self struct {
Href string `json:"href"`
}
type Links struct {
Self Self `json:"self"`
}
type Leads struct {
2024-01-15 00:20:13 +03:00
Id int `json:"id"`
2024-01-15 00:04:00 +03:00
Links Links `json:"_links"`
}
type Customers struct {
2024-01-15 00:20:13 +03:00
Id int `json:"id"`
2024-01-15 00:04:00 +03:00
Links Links `json:"_links"`
}
type Companies struct {
2024-01-15 00:20:13 +03:00
Id int `json:"id"`
2024-01-15 00:04:00 +03:00
Links Links `json:"_links"`
}
type Embedded struct {
Tags []interface{} `json:"tags"`
Leads []Leads `json:"leads"`
Customers []Customers `json:"customers"`
CatalogElements []interface{} `json:"catalog_elements"`
Companies []Companies `json:"companies"`
}