amocrm/internal/models/tag.go

25 lines
1.0 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package models
import "amocrm/internal/models/amo"
type Tag struct {
/* - таймштамп создания тега в нашей системе*/
Createdat int64 `json:"CreatedAt" bson:"createdat"`
// время обновления
UpdateAt int64 `json:"UpdateAt" bson:"updateAt"`
/* - флаг мягкого удаления*/
Deleted bool `json:"Deleted" bson:"deleted"`
/* - сущность, к которой принадлежит этот тег. Наверное, стоит сделать через enum в базе*/
Entity amo.EntityType `json:"Entity" bson:"entity"`
/* - айдишник в нашей системе*/
ID string `json:"ID" bson:"id"`
/* - название тега в амо*/
Name string `json:"Name" bson:"name"`
/* - связь с аккаунтом в интеграции амо*/
Accountid int `json:"AccountID" bson:"accountid"`
/* - айдишник тега в амо*/
Amoid int `json:"AmoID" bson:"amoid"`
/* - цвет тега в амо*/
Color string `json:"Color" bson:"color"`
}