
- OAuth Yandex API (#2vc89e8) - OAuth Google API (#2vc8cqc) - MAIN - работа с дисками (#2wmf8jf) -
20 lines
896 B
Go
20 lines
896 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Template struct {
|
|
ID string `bson:"_id,omitempty" json:"id"`
|
|
UserID string `bson:"user_id" json:"user_id"`
|
|
LeadId string `bson:"lead_id" json:"lead_id"` // AMO lead
|
|
Name string `bson:"name" json:"name"` // Название сделки, к которому привязан файл-шаблон
|
|
Filename string `bson:"filename" json:"filename"` // Имя файла-шаблона for Yandex Disk
|
|
StorageID string `bson:"storage_id" json:"storage_id"` // ID of GDisk or YaDisk
|
|
Storage string `bson:"storage" json:"storage"`
|
|
FileID string `bson:"file_id" json:"file_id"` // File id for Google Drive
|
|
IsDeleted bool `bson:"is_deleted" json:"is_deleted"`
|
|
CreatedAt time.Time `bson:"created_at" json:"created_at"`
|
|
UpdatedAt time.Time `bson:"updated_at" json:"updated_at"`
|
|
}
|