Withdraw 撤回帖子,移除线上数据库中的帖子
(ctx context.Context, postId uint, uid int64)
| 100 | |
| 101 | // Withdraw 撤回帖子,移除线上数据库中的帖子 |
| 102 | func (p *postService) Withdraw(ctx context.Context, postId uint, uid int64) error { |
| 103 | return p.repo.UpdateStatus(ctx, postId, uid, domain.Withdrawn) |
| 104 | } |
| 105 | |
| 106 | // GetPostById 获取帖子详细信息 |
| 107 | func (p *postService) GetPostById(ctx context.Context, postId uint, uid int64) (domain.Post, error) { |
nothing calls this directly
no test coverage detected