Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSON ¶
func JSON[Req any, Res any](ctx context.Context, c *app.RequestContext, handler JSONHandler[Req, Res])
func JSONError ¶
func JSONError(c *app.RequestContext, err error)
func JSONSuccess ¶
func JSONSuccess(c *app.RequestContext, data interface{})
Types ¶
type JSONHandler ¶
type JSONHandler[Req any, Res any] func(c *biz_context.BizContext, req *Req) (*Res, error)
Click to show internal directories.
Click to hide internal directories.