MCPcopy
hub / github.com/kingwrcy/moments / FailRespWithMsg

Function FailRespWithMsg

backend/handler/handler.go:71–78  ·  view source on GitHub ↗
(c echo.Context, code BizError, message string)

Source from the content-addressed store, hash-verified

69}
70
71func FailRespWithMsg(c echo.Context, code BizError, message string) error {
72 resp := Resp[any]{
73 Code: code,
74 Message: message,
75 Data: nil,
76 }
77 return c.JSON(200, resp)
78}
79
80type CustomContext struct {
81 echo.Context

Callers 15

GetFriendListMethod · 0.85
AddFriendMethod · 0.85
DeleteFriendMethod · 0.85
GetConfigMethod · 0.85
GetFullConfigMethod · 0.85
SaveConfigMethod · 0.85
UploadMethod · 0.85
ExistMethod · 0.85
CleanMethod · 0.85
S3PreSignedMethod · 0.85
RemoveCommentMethod · 0.85
AddCommentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected