wed

package module
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrToken error = errors.New("token error")
View Source
var Mongo_db *qmgo.Database
View Source
var MySQL_db *gorm.DB

Functions

func BindErr

func BindErr(c *gin.Context, err error)

绑定校验

func CreateToken

func CreateToken(jwtId string) string

func Mongo

func Mongo()

func MySQL added in v0.1.6

func MySQL()

func ParseToken

func ParseToken(token string) (string, error)

func Run

func Run(f func(r *gin.Engine))

Types

type AllConfig

type AllConfig struct {
	TimeStamp string
	App       app
	Mongodb   mongodb
	Redis     redis
	Mysql     mysqlt
	Jwt       jwtt
	AliyunSMS aliyunSMS
}

Directories

Path Synopsis
各种字符串格式验证
各种字符串格式验证

Jump to

Keyboard shortcuts

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