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

Method GetPostsCount

internal/service/post.go:221–223  ·  view source on GitHub ↗

GetPostsCount 获取帖子数量

(ctx context.Context)

Source from the content-addressed store, hash-verified

219
220// GetPostsCount 获取帖子数量
221func (p *postService) GetPostsCount(ctx context.Context) (int64, error) {
222 return p.repo.GetPostsCount(ctx)
223}
224
225// GetPostsByPlate 根据板块获取帖子
226func (p *postService) GetPostsByPlate(ctx context.Context, plateId int64, pagination domain.Pagination) ([]domain.Post, error) {

Callers

nothing calls this directly

Calls 1

GetPostsCountMethod · 0.65

Tested by

no test coverage detected