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

Method Update

internal/service/post.go:58–60  ·  view source on GitHub ↗

Update 更新帖子,默认状态为草稿

(ctx context.Context, post domain.Post)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected