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

Function FailResp

backend/handler/handler.go:62–69  ·  view source on GitHub ↗
(c echo.Context, code BizError)

Source from the content-addressed store, hash-verified

60}
61
62func FailResp(c echo.Context, code BizError) error {
63 resp := Resp[any]{
64 Code: code,
65 Message: errorMessageMap[code],
66 Data: nil,
67 }
68 return c.JSON(200, resp)
69}
70
71func FailRespWithMsg(c echo.Context, code BizError, message string) error {
72 resp := Resp[any]{

Callers 15

AddFriendMethod · 0.85
DeleteFriendMethod · 0.85
SaveConfigMethod · 0.85
CleanMethod · 0.85
S3PreSignedMethod · 0.85
RemoveCommentMethod · 0.85
AddCommentMethod · 0.85
ListMemosMethod · 0.85
RemoveMemoMethod · 0.85
LikeMemoMethod · 0.85
SaveMemoMethod · 0.85
GetMemoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected