mirror of https://github.com/go-sonic/sonic.git
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.
14 lines
292 B
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)
|
|
}
|