chore: trash

This commit is contained in:
deepzz0
2021-04-27 18:04:59 +08:00
parent 63b55b2df8
commit a39e3aac3b
8 changed files with 423 additions and 26 deletions

View File

@@ -48,6 +48,8 @@ type Store interface {
UpdateArticle(ctx context.Context, id int, fields map[string]interface{}) error
// RecoverArticle 恢复文章到草稿
RecoverArticle(ctx context.Context, id int) error
// LoadArticle 查找文章
LoadArticle(ctx context.Context, id int) (*model.Article, error)
// LoadAllArticle 读取所有文章
LoadAllArticle(ctx context.Context) (model.SortedArticles, error)
// LoadTrashArticles 读取回收箱