base

package
v0.0.0-...-ac3b76c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TrafficKey = "X-Request-Id"
	JwtSignKey = "__jwt-token-sign__"
)

Variables

This section is empty.

Functions

func CompareHashAndPassword

func CompareHashAndPassword(e string, p string) (bool, error)

func GenerateMsgIDFromContext

func GenerateMsgIDFromContext(c *gin.Context) string

GenerateMsgIDFromContext 生成msgID

func GetAuth

func GetAuth(c *gin.Context) (auth *jwtToken.Auth, err error)

GetAuth 解析上下文

func Paginate

func Paginate(page, pageSize int) func(db *gorm.DB) *gorm.DB

Paginate 解析分页和偏移量

Types

This section is empty.

Jump to

Keyboard shortcuts

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