(c *gin.Context, msg interface{})
| 29 | } |
| 30 | |
| 31 | func FailWithMsg(c *gin.Context, msg interface{}) { |
| 32 | ResponseWithCode(c, CodeFail, msg, nil) |
| 33 | } |
| 34 | |
| 35 | func ResponseWithCode(c *gin.Context, msgCode int, msg interface{}, data interface{}) { |
| 36 | if msg == nil { |
no test coverage detected