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

Method GetPostsByPlate

internal/service/post.go:226–230  ·  view source on GitHub ↗

GetPostsByPlate 根据板块获取帖子

(ctx context.Context, plateId int64, pagination domain.Pagination)

Source from the content-addressed store, hash-verified

224
225// GetPostsByPlate 根据板块获取帖子
226func (p *postService) GetPostsByPlate(ctx context.Context, plateId int64, pagination domain.Pagination) ([]domain.Post, error) {
227 offset := int64(pagination.Page-1) * *pagination.Size
228 pagination.Offset = &offset
229 return p.repo.GetPostsByPlate(ctx, plateId, pagination)
230}

Callers

nothing calls this directly

Calls 1

GetPostsByPlateMethod · 0.65

Tested by

no test coverage detected