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