Update 更新帖子,默认状态为草稿
(ctx context.Context, post domain.Post)
| 56 | |
| 57 | // Update 更新帖子,默认状态为草稿 |
| 58 | func (p *postService) Update(ctx context.Context, post domain.Post) error { |
| 59 | return p.repo.Update(ctx, post) |
| 60 | } |
| 61 | |
| 62 | // Publish 发布帖子 |
| 63 | func (p *postService) Publish(ctx context.Context, postId uint, uid int64) error { |