package persona

import (
	copydraftdomain "haixun-backend/internal/model/copy_draft/domain/usecase"
	"haixun-backend/internal/types"
)

func toCopyDraftData(item copydraftdomain.CopyDraftSummary) types.CopyDraftData {
	return types.CopyDraftData{
		ID:                  item.ID,
		PersonaID:           item.PersonaID,
		ContentPlanID:       item.ContentPlanID,
		CopyMissionID:       item.CopyMissionID,
		ScanPostID:          item.ScanPostID,
		FormulaID:           item.FormulaID,
		DraftType:           item.DraftType,
		SortOrder:           item.SortOrder,
		Text:                item.Text,
		TopicTag:            item.TopicTag,
		Angle:               item.Angle,
		Hook:                item.Hook,
		Rationale:           item.Rationale,
		ReferenceNotes:      item.ReferenceNotes,
		Sources:             item.Sources,
		AiScore:             item.AiScore,
		FormulaScore:        item.FormulaScore,
		BrandFitScore:       item.BrandFitScore,
		RiskScore:           item.RiskScore,
		SimilarityScore:     item.SimilarityScore,
		EngagementPotential: item.EngagementPotential,
		FreshnessScore:      item.FreshnessScore,
		ReviewSuggestion:    item.ReviewSuggestion,
		Status:              item.Status,
		PublishQueueID:      item.PublishQueueID,
		PublishedMediaID:    item.PublishedMediaID,
		PublishedPermalink:  item.PublishedPermalink,
		PublishedAt:         item.PublishedAt,
		CreateAt:            item.CreateAt,
	}
}
