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

Method CheckDetail

internal/api/check.go:98–115  ·  view source on GitHub ↗

CheckDetail 获取审核详情

(ctx *gin.Context)

Source from the content-addressed store, hash-verified

96
97// CheckDetail 获取审核详情
98func (ch *CheckHandler) CheckDetail(ctx *gin.Context) {
99 var req req.CheckDetailReq
100 if err := ctx.ShouldBindQuery(&req); err != nil {
101 apiresponse.ErrorWithData(ctx, err)
102 return
103 }
104 if _, ok := requireUser(ctx); !ok {
105 return
106 }
107
108 check, err := ch.svc.CheckDetail(ctx, req.CheckID)
109 if err != nil {
110 apiresponse.ErrorWithData(ctx, err)
111 return
112 }
113
114 apiresponse.SuccessWithData(ctx, check)
115}

Callers

nothing calls this directly

Calls 4

ErrorWithDataFunction · 0.92
SuccessWithDataFunction · 0.92
requireUserFunction · 0.85
CheckDetailMethod · 0.65

Tested by

no test coverage detected