fix(backup): restore db and tests

This commit is contained in:
henry.chen
2023-07-12 17:26:44 +08:00
parent 9a1b4db61a
commit f28d0e77e0
6 changed files with 64 additions and 55 deletions

View File

@@ -64,6 +64,9 @@ type Store interface {
LoadArticle(ctx context.Context, id int) (*model.Article, error)
// LoadArticleList 查找文章列表
LoadArticleList(ctx context.Context, search SearchArticles) (model.SortedArticles, int, error)
// 危险操作
DropDatabase(ctx context.Context) error
}
// Driver 存储驱动