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

Method GetPostById

internal/repository/post.go:26–26  ·  view source on GitHub ↗
(ctx context.Context, postId uint, uid int64)

Source from the content-addressed store, hash-verified

24 Update(ctx context.Context, post domain.Post) error
25 UpdateStatus(ctx context.Context, postId uint, uid int64, status uint8) error
26 GetPostById(ctx context.Context, postId uint, uid int64) (domain.Post, error)
27 GetPublishPostById(ctx context.Context, postId uint) (domain.Post, error)
28 ListPublishPosts(ctx context.Context, pagination domain.Pagination, biz ...int) ([]domain.Post, error)
29 ListPosts(ctx context.Context, pagination domain.Pagination) ([]domain.Post, error)

Callers

nothing calls this directly

Implementers 1

postRepositoryinternal/repository/post.go

Calls

no outgoing calls

Tested by

no test coverage detected