frame

package
v0.0.0-...-9a41f76 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthJWT

func AuthJWT(tokenMaker token.Maker) gin.HandlerFunc

AuthJWT creates a gin middleware for authorization

func Cors

func Cors() gin.HandlerFunc

func NewResponse

func NewResponse() *response

NewResponse return response instance

func RequestLog

func RequestLog() gin.HandlerFunc

func WrapContext

func WrapContext(ctx *gin.Context) *wrapper

WrapContext wrap content

Types

type PageData

type PageData struct {
	Total    int         `json:"total"`
	PageID   int         `json:"page_id"`
	PageSize int         `json:"page_size"`
	Result   interface{} `json:"result"`
}

PageData 分页数据

Jump to

Keyboard shortcuts

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