ay

package
v0.0.0-...-ed9b52c Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Db *gorm.DB
)
View Source
var Redis redis.Conn
View Source
var Yaml *viper.Viper

Functions

func AuthCode

func AuthCode(str, operation, key string, expiry int64) string

func Base64Decode

func Base64Decode(s string) string

Base64Decode base64 解密

func Base64Encode

func Base64Encode(s string) string

func ConnRedis

func ConnRedis()

func InitConfig

func InitConfig() *viper.Viper

func LastTime

func LastTime(t int) (msg string)

func MD5

func MD5(str string) string

func Sql

func Sql()

func WatchConf

func WatchConf()

Types

type Base

type Base struct {
}

type Json

type Json struct {
}

func (Json) Msg

func (class Json) Msg(c *gin.Context, code string, msg string, data map[string]interface{}, args ...map[string]interface{})

type Validator

type Validator struct {
}

func (Validator) Translate

func (class Validator) Translate(err error) string

Translate 翻译错误信息

Jump to

Keyboard shortcuts

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