utils

package
v0.0.0-...-ff8c6a7 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildLoginSQL

func BuildLoginSQL(tx *gorm.DB, query *model.UserLoginRequest, role ...string) *gorm.DB

func BuildQuerySQL

func BuildQuerySQL(tx *gorm.DB, query *model.QueryRequest, role ...string) *gorm.DB

func ComList

func ComList[T any](list []T, option Option) ([]T, error)

ComList 用于分页查询的通用方法

func IgnoreStructCopy

func IgnoreStructCopy(to, from any, ignore string)

func IsValidPassword

func IsValidPassword(password string) bool

Types

type Option

type Option struct {
	model.PageRequest
	Debug bool //是否显示日志
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳