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

Method Create

internal/service/post.go:53–55  ·  view source on GitHub ↗

Create 创建帖子,默认状态为草稿

(ctx context.Context, post domain.Post)

Source from the content-addressed store, hash-verified

51
52// Create 创建帖子,默认状态为草稿
53func (p *postService) Create(ctx context.Context, post domain.Post) (uint, error) {
54 return p.repo.Create(ctx, post)
55}
56
57// Update 更新帖子,默认状态为草稿
58func (p *postService) Update(ctx context.Context, post domain.Post) error {

Callers

nothing calls this directly

Calls 1

CreateMethod · 0.65

Tested by

no test coverage detected