chore: remove some filed in app.yml

This commit is contained in:
deepzz0
2021-04-30 09:50:33 +08:00
parent c06f02622a
commit 605787958d
6 changed files with 97 additions and 22 deletions

View File

@@ -52,7 +52,7 @@ type Store interface {
LoadAllSerie(ctx context.Context) (model.SortedSeries, error)
// InsertArticle 创建文章
InsertArticle(ctx context.Context, article *model.Article) error
InsertArticle(ctx context.Context, article *model.Article, startID int) error
// RemoveArticle 硬删除文章
RemoveArticle(ctx context.Context, id int) error
// CleanArticles 清理回收站文章
@@ -68,7 +68,7 @@ type Store interface {
// Driver 存储驱动
type Driver interface {
// Init 数据库初始化, 建表, 加索引操作等
Init(source string) (Store, error)
Init(name, source string) (Store, error)
}
// Register 注册驱动
@@ -106,5 +106,5 @@ func NewStore(name string, source string) (Store, error) {
return nil, fmt.Errorf("store: unknown driver %q (forgotten import?)", name)
}
return driver.Init(source)
return driver.Init(name, source)
}