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

Function SuccessResp

backend/handler/handler.go:53–60  ·  view source on GitHub ↗
(c echo.Context, data T)

Source from the content-addressed store, hash-verified

51}
52
53func SuccessResp[T any](c echo.Context, data T) error {
54 resp := Resp[T]{
55 Code: SUCCESS,
56 Message: "",
57 Data: data,
58 }
59 return c.JSON(200, resp)
60}
61
62func FailResp(c echo.Context, code BizError) error {
63 resp := Resp[any]{

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