(c echo.Context, code BizError, message string)
| 69 | } |
| 70 | |
| 71 | func 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 | |
| 80 | type CustomContext struct { |
| 81 | echo.Context |
no outgoing calls
no test coverage detected