amocrm/internal/models/user.go
2024-04-11 18:08:54 +03:00

35 lines
1.4 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
type User struct {
/* - uuid*/
ID string `json:"ID" bson:"ID"`
/* - имя аккаунта в амо*/
Name string `json:"Name" bson:"Name"`
/* - поддомен организации в амо*/
Subdomain string `json:"Subdomain" bson:"Subdomain"`
/* - связь с аккаунтом в квизе*/
Accountid string `json:"AccountID" bson:"AccountID"`
/* - айдишник пользвателя, который подключал интеграцию*/
Amouserid int `json:"AmoUserID" bson:"Amouserid"`
/* - связь с аккаунтом в амо*/
Amocrmid int64 `json:"AmocrmID" bson:"Amocrmid"`
/* - страна указанная в настройках амо*/
Country string `json:"Country" bson:"Country"`
/* - таймштамп создания аккаунта*/
Createdat int64 `json:"CreatedAt" bson:"Createdat"`
/* - флаг мягкого удаления*/
Deleted bool `json:"Deleted" bson:"Deleted"`
/* - группы пользователя в амо*/
Group []UserGroups `json:"Group" bson:"Group"`
/* - роль пользователя в амо*/
Role string `json:"Role" bson:"Role"`
/* - почта пользователя из амо*/
Email string `json:"Email" bson:"Email"`
}
type UserGroups struct {
ID int `json:"id" bson:"id"`
Name string `json:"name" bson:"name"`
UUID interface{} `json:"uuid" bson:"uuid"`
}