25 lines
632 B
Go
25 lines
632 B
Go
package usecase
|
|
|
|
import "context"
|
|
|
|
type PublishAnalyticsSummary struct {
|
|
ID string
|
|
MediaID string
|
|
Permalink string
|
|
PublishedAt int64
|
|
Checkpoint string
|
|
LikeCount int
|
|
ReplyCount int
|
|
RepostCount int
|
|
QuoteCount int
|
|
ImpressionCount int
|
|
ReachCount int
|
|
CheckedAt int64
|
|
CreateAt int64
|
|
}
|
|
|
|
type UseCase interface {
|
|
RecordCheckpoint(ctx context.Context, tenantID, ownerUID string, summary PublishAnalyticsSummary) (*PublishAnalyticsSummary, error)
|
|
ListByMedia(ctx context.Context, tenantID, ownerUID, mediaID string) ([]PublishAnalyticsSummary, error)
|
|
}
|