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

Method GetPostsCount

internal/api/post.go:353–360  ·  view source on GitHub ↗

GetPostsCount 获取帖子总数

(ctx *gin.Context)

Source from the content-addressed store, hash-verified

351
352// GetPostsCount 获取帖子总数
353func (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 根据板块获取帖子
363func (ph *PostHandler) GetPostsByPlate(ctx *gin.Context) {

Callers

nothing calls this directly

Calls 3

ErrorWithMessageFunction · 0.92
SuccessWithDataFunction · 0.92
GetPostsCountMethod · 0.65

Tested by

no test coverage detected