adapter

package
v0.0.0-...-bef4ad1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReAdapter

func ReAdapter(handler RequestHandler) gin.HandlerFunc

ReAdapter for gin handler

func ReAdapterWithUinfo

func ReAdapterWithUinfo(handler UserRequestHandler) gin.HandlerFunc

ResponseAdapter for gin handler

Types

type RequestHandler

type RequestHandler func(ctx *gin.Context) (status int, json interface{}, err error)

RequestHandler used with ResponseAdapter

type UserRequestHandler

type UserRequestHandler func(ctx *gin.Context, uinfo dto.LoginUserInfo) (status int, json interface{}, err error)

UserRequestHandler used with ReAdapterWithUinfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL