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