二维码自动补发
This commit is contained in:
@@ -76,6 +76,21 @@ func (ChatQrCode) TableName() string {
|
||||
return "chat_qrcode_pool"
|
||||
}
|
||||
|
||||
type ChatQrCodeDeliveryTask struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
ConversationID uint64 `gorm:"column:conversation_id;not null;uniqueIndex" json:"conversation_id"`
|
||||
Status string `gorm:"size:16;not null;default:'pending';index" json:"status"`
|
||||
QrCodeID *uint64 `gorm:"column:qrcode_id;index" json:"qrcode_id"`
|
||||
ErrorMessage string `gorm:"column:error_message;size:255;not null;default:''" json:"error_message"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
SentAt *time.Time `gorm:"column:sent_at" json:"sent_at"`
|
||||
}
|
||||
|
||||
func (ChatQrCodeDeliveryTask) TableName() string {
|
||||
return "chat_qrcode_delivery_tasks"
|
||||
}
|
||||
|
||||
type ChatSupportGroup struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
Code string `gorm:"size:64;not null;uniqueIndex" json:"code"`
|
||||
|
||||
Reference in New Issue
Block a user