feat: integrate creator hub douyin workflows
This commit is contained in:
@@ -18,6 +18,13 @@ const (
|
||||
ActionLikeWork = "like_work"
|
||||
ActionFollow = "follow"
|
||||
ActionRepost = "repost"
|
||||
|
||||
MessageTypeText = "text"
|
||||
MessageTypeImage = "image"
|
||||
MessageTypeVoice = "voice"
|
||||
MessageTypeVideo = "video"
|
||||
MessageTypeSticker = "sticker"
|
||||
MessageTypeUnknown = "non_text"
|
||||
)
|
||||
|
||||
type Settings struct {
|
||||
@@ -271,6 +278,12 @@ type RuleResult struct {
|
||||
AnalysedAt *time.Time `json:"analysed_at,omitempty"`
|
||||
}
|
||||
|
||||
type RuleAnalysisItem struct {
|
||||
CommentID string `json:"comment_id"`
|
||||
Result *RuleResult `json:"result,omitempty"`
|
||||
Error string `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
type Lead struct {
|
||||
Comment Comment `json:"comment"`
|
||||
RuleIDs []string `json:"rule_ids"`
|
||||
@@ -306,6 +319,25 @@ type Relation struct {
|
||||
SmallAccountID string `json:"small_account_id"`
|
||||
}
|
||||
|
||||
type ListenerState struct {
|
||||
AccountID string `json:"account_id"`
|
||||
Platform string `json:"platform"`
|
||||
Generation string `json:"generation"`
|
||||
Status string `json:"status"`
|
||||
BoundaryAt *time.Time `json:"boundary_at,omitempty"`
|
||||
LastDeliveryID string `json:"last_delivery_id,omitempty"`
|
||||
Reason string `json:"reason,omitempty"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
type Page[T any] struct {
|
||||
Data []T `json:"data"`
|
||||
Page int `json:"page"`
|
||||
PageSize int `json:"page_size"`
|
||||
Total int `json:"total"`
|
||||
HasNext bool `json:"has_next"`
|
||||
}
|
||||
|
||||
type InteractionEvent struct {
|
||||
ID string `json:"id"`
|
||||
Platform string `json:"platform"`
|
||||
@@ -317,8 +349,10 @@ type InteractionEvent struct {
|
||||
InteractorUID string `json:"interactor_uid"`
|
||||
CommentID string `json:"comment_id"`
|
||||
WorkID string `json:"work_id"`
|
||||
MessageType string `json:"message_type"`
|
||||
MessageText string `json:"message_text,omitempty"`
|
||||
PlatformEventAt *time.Time `json:"platform_event_at,omitempty"`
|
||||
GatewayReceivedAt *time.Time `json:"gateway_received_at,omitempty"`
|
||||
ReceivedAt time.Time `json:"received_at"`
|
||||
ProcessingStartedAt *time.Time `json:"processing_started_at,omitempty"`
|
||||
ProcessingFinishedAt *time.Time `json:"processing_finished_at,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user