generated from PenaSide/GolangTemplate
104 lines
5.0 KiB
Go
104 lines
5.0 KiB
Go
![]() |
package models
|
||
|
|
||
|
type AmocrmUser struct {
|
||
|
ID string `json:"id" bson:"_id,omitempty"`
|
||
|
AmocrmID string `json:"amocrmId" bson:"amocrmId"`
|
||
|
UserID string `json:"userId,omitempty" bson:"userId,omitempty"`
|
||
|
Information AmocrmUserInformation `json:"information" bson:"information"`
|
||
|
Audit Audit `json:"audit" bson:"audit"`
|
||
|
}
|
||
|
|
||
|
type AmocrmUserInformation struct {
|
||
|
ID int64 `json:"id" bson:"id"`
|
||
|
Name string `json:"name" bson:"name"`
|
||
|
Subdomain string `json:"subdomain" bson:"subdomain"`
|
||
|
CreatedAt int `json:"created_at" bson:"created_at"`
|
||
|
CreatedBy int `json:"created_by" bson:"created_by"`
|
||
|
UpdatedAt int `json:"updated_at" bson:"updated_at"`
|
||
|
UpdatedBy int `json:"updated_by" bson:"updated_by"`
|
||
|
CurrentUserID int `json:"current_user_id" bson:"current_user_id"`
|
||
|
Country string `json:"country" bson:"country"`
|
||
|
CustomersMode string `json:"customers_mode" bson:"customers_mode"`
|
||
|
IsUnsortedOn bool `json:"is_unsorted_on" bson:"is_unsorted_on"`
|
||
|
IsLossReasonEnabled bool `json:"is_loss_reason_enabled" bson:"is_loss_reason_enabled"`
|
||
|
IsHelpbotEnabled bool `json:"is_helpbot_enabled" bson:"is_helpbot_enabled"`
|
||
|
IsTechnicalAccount bool `json:"is_technical_account" bson:"is_technical_account"`
|
||
|
ContactNameDisplayOrder int `json:"contact_name_display_order" bson:"contact_name_display_order"`
|
||
|
AmojoID string `json:"amojo_id" bson:"amojo_id"`
|
||
|
UUID string `json:"uuid" bson:"uuid"`
|
||
|
Version int `json:"version" bson:"version"`
|
||
|
Links struct {
|
||
|
Self struct {
|
||
|
Href string `json:"href" bson:"href"`
|
||
|
} `json:"self" bson:"self"`
|
||
|
} `json:"_links" bson:"_links"`
|
||
|
Embedded struct {
|
||
|
AmojoRights struct {
|
||
|
CanDirect bool `json:"can_direct" bson:"can_direct"`
|
||
|
CanCreateGroups bool `json:"can_create_groups" bson:"can_create_groups"`
|
||
|
} `json:"amojo_rights" bson:"amojo_rights"`
|
||
|
UsersGroups []struct {
|
||
|
ID int `json:"id" bson:"id"`
|
||
|
Name string `json:"name" bson:"name"`
|
||
|
UUID interface{} `json:"uuid" bson:"uuid"`
|
||
|
} `json:"users_groups" bson:"users_groups"`
|
||
|
TaskTypes []struct {
|
||
|
ID int `json:"id" bson:"id"`
|
||
|
Name string `json:"name" bson:"name"`
|
||
|
Color interface{} `json:"color" bson:"color"`
|
||
|
IconID interface{} `json:"icon_id" bson:"icon_id"`
|
||
|
Code string `json:"code" bson:"code"`
|
||
|
} `json:"task_types" bson:"task_types"`
|
||
|
EntityNames struct {
|
||
|
Leads struct {
|
||
|
Ru struct {
|
||
|
Gender string `json:"gender" bson:"gender"`
|
||
|
PluralForm struct {
|
||
|
Dative string `json:"dative" bson:"dative"`
|
||
|
Default string `json:"default" bson:"default"`
|
||
|
Genitive string `json:"genitive" bson:"genitive"`
|
||
|
Accusative string `json:"accusative" bson:"accusative"`
|
||
|
Instrumental string `json:"instrumental" bson:"instrumental"`
|
||
|
Prepositional string `json:"prepositional" bson:"prepositional"`
|
||
|
} `json:"plural_form" bson:"plural_form"`
|
||
|
SingularForm struct {
|
||
|
Dative string `json:"dative" bson:"dative"`
|
||
|
Default string `json:"default" bson:"default"`
|
||
|
Genitive string `json:"genitive" bson:"genitive"`
|
||
|
Accusative string `json:"accusative" bson:"accusative"`
|
||
|
Instrumental string `json:"instrumental" bson:"instrumental"`
|
||
|
Prepositional string `json:"prepositional" bson:"prepositional"`
|
||
|
} `json:"singular_form" bson:"singular_form"`
|
||
|
} `json:"ru" bson:"ru"`
|
||
|
En struct {
|
||
|
SingularForm struct {
|
||
|
Default string `json:"default" bson:"default"`
|
||
|
} `json:"singular_form" bson:"singular_form"`
|
||
|
PluralForm struct {
|
||
|
Default string `json:"default" bson:"default"`
|
||
|
} `json:"plural_form" bson:"plural_form"`
|
||
|
Gender string `json:"gender" bson:"gender"`
|
||
|
} `json:"en" bson:"en"`
|
||
|
Es struct {
|
||
|
SingularForm struct {
|
||
|
Default string `json:"default" bson:"default"`
|
||
|
} `json:"singular_form" bson:"singular_form"`
|
||
|
PluralForm struct {
|
||
|
Default string `json:"default" bson:"default"`
|
||
|
} `json:"plural_form" bson:"plural_form"`
|
||
|
Gender string `json:"gender" bson:"gender"`
|
||
|
} `json:"es" bson:"es"`
|
||
|
} `json:"leads" bson:"leads"`
|
||
|
} `json:"entity_names" bson:"entity_names"`
|
||
|
DatetimeSettings struct {
|
||
|
DatePattern string `json:"date_pattern" bson:"date_pattern"`
|
||
|
ShortDatePattern string `json:"short_date_pattern" bson:"short_date_pattern"`
|
||
|
ShortTimePattern string `json:"short_time_pattern" bson:"short_time_pattern"`
|
||
|
DateFormant string `json:"date_formant" bson:"date_formant"`
|
||
|
TimeFormat string `json:"time_format" bson:"time_format"`
|
||
|
Timezone string `json:"timezone" bson:"timezone"`
|
||
|
TimezoneOffset string `json:"timezone_offset" bson:"timezone_offset"`
|
||
|
} `json:"datetime_settings" bson:"datetime_settings"`
|
||
|
} `json:"_embedded" bson:"_embedded"`
|
||
|
}
|