haixunMaster/haixun-backend/internal/model/outreach_draft/domain/entity/draft.go

23 lines
698 B
Go
Raw Normal View History

2026-06-24 10:02:42 +00:00
package entity
const CollectionName = "outreach_drafts"
type DraftItem struct {
Text string `bson:"text"`
Angle string `bson:"angle"`
Rationale string `bson:"rationale"`
}
type OutreachDraft struct {
ID string `bson:"_id"`
TenantID string `bson:"tenant_id"`
OwnerUID string `bson:"owner_uid"`
BrandID string `bson:"brand_id"`
LegacyPersonaID string `bson:"persona_id,omitempty"`
ScanPostID string `bson:"scan_post_id"`
Relevance float64 `bson:"relevance"`
Reason string `bson:"reason"`
Drafts []DraftItem `bson:"drafts"`
CreateAt int64 `bson:"create_at"`
}