MCPcopy
hub / github.com/geekjourneyx/md2wechat-skill / DraftCreator

Interface DraftCreator

internal/publish/service.go:29–31  ·  view source on GitHub ↗

DraftCreator is the draft adapter dependency needed by the publish service.

Source from the content-addressed store, hash-verified

27
28// DraftCreator is the draft adapter dependency needed by the publish service.
29type DraftCreator interface {
30 CreateDraft(artifact Artifact) (*DraftResult, error)
31}
32
33// CoverUploader uploads a cover image and returns the target platform media ID.
34type CoverUploader func(string) (string, error)

Callers 5

CreateDraftFromFileMethod · 0.65
CreateDraftMethod · 0.65
CreateDraftMethod · 0.65
ConvertMethod · 0.65
runTestDraftFunction · 0.65

Implementers 5

Serviceinternal/wechat/service.go
Serviceinternal/draft/service.go
ArtifactDraftCreatorinternal/draft/publish_adapter.go
fakeDraftCreatorinternal/publish/service_test.go
fakeDraftCreatorcmd/md2wechat/convert_test.go

Calls

no outgoing calls

Tested by

no test coverage detected