24 lines
755 B
Go
24 lines
755 B
Go
|
|
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"`
|
||
|
|
TopicID string `bson:"topic_id,omitempty"`
|
||
|
|
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"`
|
||
|
|
}
|