utils

package
v0.0.0-...-a5e1bbd Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWT *jwt.JWT

Functions

func GetAuthModel

func GetAuthModel(ctx *gin.Context) request.AuthJWT

GetAuthModel GetAuthModel

func GetContentTypeByFileName

func GetContentTypeByFileName(filename string) (string, string)

func InitJWT

func InitJWT()

func InitPgSQL

func InitPgSQL(pgConf *conf.PgSQLConfig) (*gorm.DB, error)

func Md5Encode

func Md5Encode(str string) string

获取md5

func PrintObj

func PrintObj(obj interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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