Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { ID uint64 `gorm:"primaryKey"` UserID uint64 `gorm:"not null;index"` SourceName string `gorm:"not null"` Name string `gorm:"not null"` LastUpdateAt time.Time `gorm:"not null"` CreatedAt time.Time `gorm:"not null"` UpdatedAt time.Time `gorm:"not null"` User User `gorm:"foreignKey:UserID"` }
type Message ¶
type Message struct { ID uint64 `gorm:"primaryKey"` GroupID uint64 `gorm:"not null;index"` MessageID uint64 `gorm:"not null"` Source string `gorm:"not null"` MessageAt time.Time `gorm:"not null"` CreatedAt time.Time `gorm:"not null"` UpdatedAt time.Time `gorm:"not null"` User User `gorm:"foreignKey:GroupID"` }
type TelegramMessage ¶
type TelegramMessage struct { Text string `json:"text"` User TelegramUser `json:"from"` }
type TelegramResult ¶
type TelegramResult struct {
Message TelegramMessage `json:"message"`
}
type TelegramUser ¶
type VkResponse ¶
type VkResponse struct {
VkResult `json:"response"`
}
Click to show internal directories.
Click to hide internal directories.