Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MarshalOptions = protojson.MarshalOptions{ UseProtoNames: true, EmitUnpopulated: true, }
Functions ¶
func GinHandlerFunc ¶
func GinHandlerFunc(fn func(ctx *GinContext) error) gin.HandlerFunc
Types ¶
type GinContext ¶
func NewGinContext ¶
func NewGinContext(ctx *gin.Context) *GinContext
func (*GinContext) Error ¶
func (g *GinContext) Error(error string) error
func (*GinContext) ErrorBusiness ¶
func (g *GinContext) ErrorBusiness(message any) error
func (*GinContext) InvalidParams ¶
func (g *GinContext) InvalidParams(message any) error
func (*GinContext) Success ¶
func (g *GinContext) Success(data any) error
Click to show internal directories.
Click to hide internal directories.