Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Gdb *gorm.DB
Functions ¶
func AddAdvertise ¶
func DeleteAdvertise ¶
func SaveUserInfo ¶
Types ¶
type Advertise ¶
type Advertise struct { BaseModel Title string `gorm:"column:title" json:"title"` Url string `gorm:"column:url" json:"url"` Sort int `gorm:"column:sort" json:"sort"` ValidityPeriod carbon.DateTime `gorm:"column:validity_period" json:"validity_period"` }
func AllAdvertise ¶
func GetEfficientAdvertise ¶
type UserInfo ¶
type UserInfo struct { BaseModel TelegramUserId int64 `gorm:"uniqueIndex:idx_chat_user,column:telegram_user_id" json:"telegram_user_id"` TelegramChatId int64 `gorm:"uniqueIndex:idx_chat_user,column:telegram_chat_id" json:"telegram_chat_id"` JoinedTime carbon.DateTime `gorm:"column:joined_time" json:"joined_time"` NumberOfSpeeches int64 `gorm:"column:number_of_speeches" json:"number_of_speeches"` VerificationTimes int64 `gorm:"column:verification_times" json:"verification_times"` }
func GetUserInfo ¶
Click to show internal directories.
Click to hide internal directories.