package table import "time" // MessageCallbackConfig 消息回调配置表 type MessageCallbackConfig struct { ID int64 `json:"id" gorm:"primary_key;auto_increment"` // 主键ID UUID string `json:"uuid" gorm:"not null;index"` // 微信UUID标识 Key string `json:"key" gorm:"not null"` // 对应的key值 CallbackURL string `json:"callback_url" gorm:"not null"` // 回调URL Enabled bool `json:"enabled" gorm:"default:false"` // 是否启用回调 CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime"` // 创建时间 UpdatedAt time.Time `json:"updated_at" gorm:"autoUpdateTime"` // 更新时间 } // TableName 表名 func (MessageCallbackConfig) TableName() string { return "message_callback_config" }