2024-01-15 00:04:00 +03:00
|
|
|
package companies
|
|
|
|
|
2024-05-19 21:00:41 +03:00
|
|
|
import "surdeus.su/core/amo/common"
|
2024-01-15 00:04:00 +03:00
|
|
|
|
|
|
|
type Company struct {
|
2024-05-30 13:54:00 +03:00
|
|
|
ID int `json:"id"`
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
ResponsibleUserID int `json:"responsible_user_id,omitempty"`
|
|
|
|
GroupID int `json:"group_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"`
|
|
|
|
ClosestTaskAt interface{} `json:"closest_task_at,omitempty"`
|
2024-05-30 15:42:47 +03:00
|
|
|
CustomFieldsValues common.CustomFieldsValues `json:"custom_fields_values,omitempty"`
|
2024-05-30 13:54:00 +03:00
|
|
|
AccountID int `json:"account_id,omitempty"`
|
|
|
|
Links Links `json:"_links,omitempty"`
|
|
|
|
Embedded Embedded `json:"_embedded,omitempty"`
|
2024-01-15 00:04:00 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type Self struct {
|
|
|
|
Href string `json:"href"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Links struct {
|
|
|
|
Self Self `json:"self"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Contacts struct {
|
2024-05-30 13:54:00 +03:00
|
|
|
ID int `json:"id"`
|
2024-01-15 00:04:00 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type Embedded struct {
|
2024-05-30 13:54:00 +03:00
|
|
|
Tags []interface{} `json:"tags"`
|
|
|
|
Contacts []*Contacts `json:"contacts"`
|
2024-01-15 00:04:00 +03:00
|
|
|
}
|