This commit is contained in:
2025-09-01 21:15:15 +08:00
parent 16a8cd5506
commit 2f3817c8f0
6 changed files with 181 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ type ArticleApplicationService interface {
DeleteArticle(ctx context.Context, cmd *commands.DeleteArticleCommand) error
GetArticleByID(ctx context.Context, query *appQueries.GetArticleQuery) (*responses.ArticleInfoResponse, error)
ListArticles(ctx context.Context, query *appQueries.ListArticleQuery) (*responses.ArticleListResponse, error)
ListArticlesForAdmin(ctx context.Context, query *appQueries.ListArticleQuery) (*responses.ArticleListResponse, error)
// 文章状态管理
PublishArticle(ctx context.Context, cmd *commands.PublishArticleCommand) error