amocrm/internal/models/tag.go
2024-04-16 22:10:53 +03:00

25 lines
965 B
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 {
/* - айдишник в нашей системе Primary Key*/
ID int `json:"ID"`
/* - айдишник тега в амо*/
Amoid int `json:"AmoID"`
/* - связь с аккаунтом в интеграции амо id аккаунта в амо*/
Accountid int `json:"AccountID"`
/* - сущность, к которой принадлежит этот тег. Наверное, стоит сделать через enum в базе*/
Entity amo.EntityType `json:"Entity"`
/* - название тега в амо*/
Name string `json:"Name"`
/* - цвет тега в амо*/
Color *string `json:"Color"`
/* - флаг мягкого удаления*/
Deleted bool `json:"Deleted"`
/* - таймштамп создания тега в нашей системе*/
Createdat int64 `json:"CreatedAt"`
// время обновления
UpdateAt int64 `json:"UpdateAt"`
}