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

Method GetPostsByPlate

internal/repository/post.go:323–330  ·  view source on GitHub ↗
(ctx context.Context, plateId int64, pagination domain.Pagination)

Source from the content-addressed store, hash-verified

321}
322
323func (p *postRepository) GetPostsByPlate(ctx context.Context, plateId int64, pagination domain.Pagination) ([]domain.Post, error) {
324 posts, err := p.dao.GetPostsByPlate(ctx, plateId, pagination)
325 if err != nil {
326 return nil, fmt.Errorf("获取帖子失败: %w", err)
327 }
328
329 return change.FromDomainSlicePost(posts), nil
330}

Callers

nothing calls this directly

Calls 2

FromDomainSlicePostFunction · 0.92
GetPostsByPlateMethod · 0.65

Tested by

no test coverage detected