utils

package
v0.0.0-...-00ec2d6 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Limit = 20
)

Variables

This section is empty.

Functions

func CheckParam

func CheckParam(accountName, password string) myerr.Err

func Compare

func Compare(hashedPassword, password string) error

比较密码

func Encrypt

func Encrypt(source string) (string, error)

给文本加密

func GetMD5Encode

func GetMD5Encode(data string) string

将一个字符串进行MD5加密后返回加密后的字符串

func GetRequestID

func GetRequestID(c *gin.Context) string

func Validate

func Validate(m model.Account) error

验证字段是否有效.

Types

This section is empty.

Jump to

Keyboard shortcuts

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