feat(webhook): align chatwoot ingress routes
This commit is contained in:
@@ -31,12 +31,12 @@ type ChannelTikTok struct {
|
||||
InboxID uint `gorm:"index" json:"inbox_id,omitempty"`
|
||||
|
||||
// TikTok Business account ID (obtained after OAuth authorization)
|
||||
TikTokBusinessID string `gorm:"type:varchar(255);not null" json:"tiktok_business_id"`
|
||||
TikTokBusinessID string `gorm:"column:tiktok_business_id;type:varchar(255);not null" json:"tiktok_business_id"`
|
||||
|
||||
// OAuth2 tokens (obtained via BuildAuthURL → ExchangeToken flow)
|
||||
AccessToken string `gorm:"type:varchar(512)" json:"access_token,omitempty"`
|
||||
RefreshToken string `gorm:"type:varchar(512)" json:"refresh_token,omitempty"`
|
||||
TokenExpiresAt time.Time `gorm:"" json:"token_expires_at,omitempty"`
|
||||
AccessToken string `gorm:"type:varchar(512)" json:"access_token,omitempty"`
|
||||
RefreshToken string `gorm:"type:varchar(512)" json:"refresh_token,omitempty"`
|
||||
TokenExpiresAt time.Time `gorm:"" json:"token_expires_at,omitempty"`
|
||||
|
||||
// Webhook verification token (set during channel creation for webhook setup)
|
||||
WebhookVerifyToken string `gorm:"type:varchar(255)" json:"webhook_verify_token,omitempty"`
|
||||
@@ -63,4 +63,4 @@ func (c ChannelTikTok) GetChannelBase() ChannelBase {
|
||||
func (c ChannelTikTok) GetChannelType() string { return "tiktok" }
|
||||
|
||||
// TableName returns the GORM table name for ChannelTikTok.
|
||||
func (ChannelTikTok) TableName() string { return "channel_tiktoks" }
|
||||
func (ChannelTikTok) TableName() string { return "channel_tiktoks" }
|
||||
|
||||
Reference in New Issue
Block a user