You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sonic/service/export_import.go

14 lines
292 B
Go

package service
import (
"context"
"io"
"github.com/go-sonic/sonic/model/entity"
)
type ExportImport interface {
CreateByMarkdown(ctx context.Context, filename string, reader io.Reader) (*entity.Post, error)
ExportMarkdown(ctx context.Context, needFrontMatter bool) (string, error)
}