(ctx context.Context, plateId int64, pagination domain.Pagination)
| 321 | } |
| 322 | |
| 323 | func (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 | } |
nothing calls this directly
no test coverage detected