14 lines
372 B
Go
14 lines
372 B
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
|
|
"haixun-backend/internal/model/outreach_draft/domain/entity"
|
|
)
|
|
|
|
type Repository interface {
|
|
EnsureIndexes(ctx context.Context) error
|
|
Create(ctx context.Context, draft *entity.OutreachDraft) error
|
|
GetLatestByScanPost(ctx context.Context, tenantID, ownerUID, brandID, topicID, scanPostID string) (*entity.OutreachDraft, error)
|
|
}
|