MCPcopy Create free account
hub / github.com/LockGit/gochat / SuccessWithMsg

Function SuccessWithMsg

tools/response.go:27–29  ·  view source on GitHub ↗
(c *gin.Context, msg interface{}, data interface{})

Source from the content-addressed store, hash-verified

25}
26
27func SuccessWithMsg(c *gin.Context, msg interface{}, data interface{}) {
28 ResponseWithCode(c, CodeSuccess, msg, data)
29}
30
31func FailWithMsg(c *gin.Context, msg interface{}) {
32 ResponseWithCode(c, CodeFail, msg, nil)

Callers 8

PushFunction · 0.92
PushRoomFunction · 0.92
CountFunction · 0.92
GetRoomInfoFunction · 0.92
LoginFunction · 0.92
RegisterFunction · 0.92
CheckAuthFunction · 0.92
LogoutFunction · 0.92

Calls 1

ResponseWithCodeFunction · 0.85

Tested by

no test coverage detected