MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / Withdraw

Method Withdraw

internal/service/post.go:102–104  ·  view source on GitHub ↗

Withdraw 撤回帖子,移除线上数据库中的帖子

(ctx context.Context, postId uint, uid int64)

Source from the content-addressed store, hash-verified

100
101// Withdraw 撤回帖子,移除线上数据库中的帖子
102func (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 获取帖子详细信息
107func (p *postService) GetPostById(ctx context.Context, postId uint, uid int64) (domain.Post, error) {

Callers

nothing calls this directly

Calls 1

UpdateStatusMethod · 0.65

Tested by

no test coverage detected