utils

package
v0.0.0-...-4699a84 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contain

func Contain(obj interface{}, target interface{}) (bool, error)

func GenerateCodeByUUID

func GenerateCodeByUUID(codeType int) (code string)

GenerateCodeByUUID 根据UUID生成编码

func ObtainClientId

func ObtainClientId(ctx iris.Context) (clientId int64, err error)

ObtainClientId 获取当前的租户id

func PrintCallerInfo

func PrintCallerInfo(ctx iris.Context)

PrintCallerInfo 打印访问者简单信息

func RandStr

func RandStr(len int) string

func SplitRedisPort

func SplitRedisPort(ports string) (split []string)

func ZeroValue

func ZeroValue(v interface{}) bool

Types

type CodePrefix

type CodePrefix struct {
	req.CommonModel
	PrefixStr string `gorm:"column:prefix_str;type:string" json:"prefixStr"`
	Remark    string `gorm:"column:remark;type:string" json:"remark"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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