utils

package
v0.0.0-...-96a791e Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptPwd

func DecryptPwd(inputPwd string, formPwd string, salt string) bool

DecryptPwd 密码验证

func EncryptPwd

func EncryptPwd(pwd string, salt string) (string, error)

EncryptPwd 密码加密

func Paginate

func Paginate(page, size int) func(db *gorm.DB) *gorm.DB

Paginate 数据分页

func RandString

func RandString(n int, seed string) (string, error)

RandString 获取随机字符串

func SafeDereference

func SafeDereference(ptr *string) string

SafeDereference 安全解引用指针,如果指针为空则返回空字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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