GetPostsByPlate 根据板块获取帖子
(ctx context.Context, plateId int64, pagination domain.Pagination)
| 224 | |
| 225 | // GetPostsByPlate 根据板块获取帖子 |
| 226 | func (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 | } |
nothing calls this directly
no test coverage detected