Documentation ¶
Index ¶
- type Utils
- func (u Utils) Error(err error) *api.Response
- func (u Utils) ErrorJson(ctx echo.Context, errCode int, err error) error
- func (u Utils) ErrorWithCode(code int, err error) *api.Response
- func (u Utils) Response(err error) *api.Response
- func (u Utils) Result(r *proto.Result) *api.Response
- func (u Utils) SResult(err error) *proto.Result
- func (u Utils) Success(data interface{}) *api.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.