GetPostsCount 获取帖子总数
(ctx *gin.Context)
| 351 | |
| 352 | // GetPostsCount 获取帖子总数 |
| 353 | func (ph *PostHandler) GetPostsCount(ctx *gin.Context) { |
| 354 | count, err := ph.svc.GetPostsCount(ctx) |
| 355 | if err != nil { |
| 356 | apiresponse.ErrorWithMessage(ctx, err.Error()) |
| 357 | return |
| 358 | } |
| 359 | apiresponse.SuccessWithData(ctx, count) |
| 360 | } |
| 361 | |
| 362 | // GetPostsByPlate 根据板块获取帖子 |
| 363 | func (ph *PostHandler) GetPostsByPlate(ctx *gin.Context) { |
nothing calls this directly
no test coverage detected