30 lines
1010 B
Go
30 lines
1010 B
Go
|
|
package entity
|
||
|
|
|
||
|
|
const CollectionName = "publish_analytics"
|
||
|
|
|
||
|
|
type PublishAnalytics struct {
|
||
|
|
ID string `bson:"_id"`
|
||
|
|
TenantID string `bson:"tenant_id"`
|
||
|
|
OwnerUID string `bson:"owner_uid"`
|
||
|
|
BrandID string `bson:"brand_id,omitempty"`
|
||
|
|
PersonaID string `bson:"persona_id,omitempty"`
|
||
|
|
MediaID string `bson:"media_id"`
|
||
|
|
Permalink string `bson:"permalink,omitempty"`
|
||
|
|
PublishedAt int64 `bson:"published_at"`
|
||
|
|
Checkpoint string `bson:"checkpoint"`
|
||
|
|
LikeCount int `bson:"like_count,omitempty"`
|
||
|
|
ReplyCount int `bson:"reply_count,omitempty"`
|
||
|
|
RepostCount int `bson:"repost_count,omitempty"`
|
||
|
|
QuoteCount int `bson:"quote_count,omitempty"`
|
||
|
|
ImpressionCount int `bson:"impression_count,omitempty"`
|
||
|
|
ReachCount int `bson:"reach_count,omitempty"`
|
||
|
|
CheckedAt int64 `bson:"checked_at"`
|
||
|
|
CreateAt int64 `bson:"create_at"`
|
||
|
|
}
|
||
|
|
|
||
|
|
const (
|
||
|
|
Checkpoint1h = "+1h"
|
||
|
|
Checkpoint24h = "+24h"
|
||
|
|
Checkpoint7d = "+7d"
|
||
|
|
)
|