utils

package
v0.0.0-...-8d4382c Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

**************************************************

** @Desc : This file for 加密、解密方法
** @Time : 2018.12.28 14:10
** @Author : Joker
** @File : encryption
** @Last Modified by : Joker
** @Last Modified time: 2019-11-30 10:19:33
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for 配置数据库连接
** @Time : 2018-12-22 13:55:26
** @Author : Joker
** @File : init_database.go
** @Last Modified by : Joker
** @Last Modified time:2018-12-22 13:55:26
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for 发送短信验证码
** @Time : 2019.04.04 9:37
** @Author : Joker
** @File : send_messages
** @Last Modified by : Joker
** @Last Modified time: 2019-11-29 11:05:41
** @Software: GoLand

***************************************************

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDatabase

func InitDatabase() bool

初始化数据连接

func InitLogs

func InitLogs()

func LogAlert

func LogAlert(v ...interface{})

func LogCritical

func LogCritical(v ...interface{})

func LogDebug

func LogDebug(v ...interface{})

func LogEmergency

func LogEmergency(v ...interface{})

根据错误/异常打印不同日志

func LogError

func LogError(v ...interface{})

func LogInfo

func LogInfo(v ...interface{})

func LogNotice

func LogNotice(v ...interface{})

func LogTrace

func LogTrace(v ...interface{})

func LogWarning

func LogWarning(v ...interface{})

func SendSmsForPay

func SendSmsForPay(mobile, code string) bool

发送提现通知

Types

type Encrypt

type Encrypt struct{}

func (*Encrypt) Base64Decode

func (*Encrypt) Base64Decode(raw string) ([]byte, error)

base64解码

func (*Encrypt) Base64Encode

func (*Encrypt) Base64Encode(raw []byte) string

base64编码

func (*Encrypt) EncodeMd5

func (*Encrypt) EncodeMd5(buf []byte) string

将字符串加密成 md5

Jump to

Keyboard shortcuts

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