23 lines
795 B
Go
23 lines
795 B
Go
![]() |
package model
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type Amo struct {
|
||
|
ID string `bson:"_id"`
|
||
|
UserID string `bson:"user_id"`
|
||
|
AccountID string `bson:"account_id"` // Account ID in AMO CRM
|
||
|
Subdomain string `bson:"subdomain"` // Subdomain in AMO CRM. Example: [subdomain].amocrm.ru/
|
||
|
Referer string `bson:"referer"` // Referer in AMO CRM. Example: subdomain.amocrm.ru
|
||
|
FromWidget string `bson:"from_widget"`
|
||
|
AccessToken string `bson:"access_token"`
|
||
|
RefreshToken string `bson:"refresh_token"`
|
||
|
Code string `bson:"code"`
|
||
|
ExpiresIn time.Time `bson:"expires_in"`
|
||
|
TokenType string `bson:"token_type"`
|
||
|
IsDeleted bool `bson:"is_deleted"`
|
||
|
CreatedAt time.Time `bson:"created_at"`
|
||
|
UpdatedAt time.Time `bson:"updated_at"`
|
||
|
}
|