fix: renamed Id to ID for the contacts.
This commit is contained in:
parent
7583137585
commit
96a0296d23
1 changed files with 8 additions and 8 deletions
|
@ -3,25 +3,25 @@ package contacts
|
||||||
import "surdeus.su/core/amo/common"
|
import "surdeus.su/core/amo/common"
|
||||||
|
|
||||||
type Contact struct {
|
type Contact struct {
|
||||||
Id int `json:"id"`
|
ID int `json:"id"`
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
FirstName string `json:"first_name,omitempty"`
|
FirstName string `json:"first_name,omitempty"`
|
||||||
LastName string `json:"last_name,omitempty"`
|
LastName string `json:"last_name,omitempty"`
|
||||||
ResponsibleUserId int `json:"responsible_user_id,omitempty"`
|
ResponsibleUserID int `json:"responsible_user_id,omitempty"`
|
||||||
GroupId int `json:"group_id,omitempty"`
|
GroupID int `json:"group_id,omitempty"`
|
||||||
CreatedBy int `json:"created_by,omitempty"`
|
CreatedBy int `json:"created_by,omitempty"`
|
||||||
UpdatedBy int `json:"updated_by,omitempty"`
|
UpdatedBy int `json:"updated_by,omitempty"`
|
||||||
CreatedAt int `json:"created_at,omitempty"`
|
CreatedAt int `json:"created_at,omitempty"`
|
||||||
UpdatedAt int `json:"updated_at,omitempty"`
|
UpdatedAt int `json:"updated_at,omitempty"`
|
||||||
ClosestTaskAt interface{} `json:"closest_task_at,omitempty"`
|
ClosestTaskAt interface{} `json:"closest_task_at,omitempty"`
|
||||||
CustomFieldsValues common.CustomFieldsValues `json:"custom_fields_values,omitempty"`
|
CustomFieldsValues common.CustomFieldsValues `json:"custom_fields_values,omitempty"`
|
||||||
AccountId int `json:"account_id,omitempty"`
|
AccountID int `json:"account_id,omitempty"`
|
||||||
Links Links `json:"_links,omitempty"`
|
Links Links `json:"_links,omitempty"`
|
||||||
Embedded Embedded `json:"_embedded,omitempty"`
|
Embedded Embedded `json:"_embedded,omitempty"`
|
||||||
}
|
}
|
||||||
type Values struct {
|
type Values struct {
|
||||||
Value string `json:"value"`
|
Value string `json:"value"`
|
||||||
EnumId int `json:"enum_id"`
|
EnumID int `json:"enum_id"`
|
||||||
Enum string `json:"enum"`
|
Enum string `json:"enum"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,17 +34,17 @@ type Links struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Leads struct {
|
type Leads struct {
|
||||||
Id int `json:"id"`
|
ID int `json:"id"`
|
||||||
Links Links `json:"_links"`
|
Links Links `json:"_links"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Customers struct {
|
type Customers struct {
|
||||||
Id int `json:"id"`
|
ID int `json:"id"`
|
||||||
Links Links `json:"_links"`
|
Links Links `json:"_links"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Company struct {
|
type Company struct {
|
||||||
Id int `json:"id"`
|
ID int `json:"id"`
|
||||||
Links Links `json:"_links"`
|
Links Links `json:"_links"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue