| 12345678910111213141516171819202122 |
- package entity
- // TgGroup Telegram 群组信息
- type TgGroup struct {
- MysqlBaseModel
- ChatId int64 `json:"chatId" gorm:"column:chat_id;unique;comment:'群组ID'"`
- ChatType string `json:"chatType" gorm:"column:chat_type;type:varchar(20);comment:'群组类型:group/supergroup'"`
- Title string `json:"title" gorm:"column:title;type:varchar(255);comment:'群组名称'"`
- Username string `json:"username" gorm:"column:username;type:varchar(255);comment:'群组用户名'"`
- Description string `json:"description" gorm:"column:description;type:text;comment:'群组描述'"`
- MemberCount int `json:"memberCount" gorm:"column:member_count;comment:'成员数量'"`
- Status int `json:"status" gorm:"column:status;default:1;comment:'状态:0-禁用,1-启用'"`
- BotJoinedAt int64 `json:"botJoinedAt" gorm:"column:bot_joined_at;comment:'Bot加入时间'"`
- }
- func (*TgGroup) TableName() string {
- return ModelPrefix + "tg_group"
- }
- func (*TgGroup) Comment() string {
- return "Telegram群组表"
- }
|