thread-master/internal/model/outreach_draft/domain/repository/repository.go

14 lines
372 B
Go
Raw Permalink Normal View History

2026-06-26 08:37:04 +00:00
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)
}