rexUtils

package
v1.0.90 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPolicyType = errors.New("invalid policy type")
)

Functions

func BatchAddCasBinPolices added in v1.0.90

func BatchAddCasBinPolices(e *casbin.Enforcer, pType string, rules [][]string) error

func BatchRemoveCasBinPolices added in v1.0.90

func BatchRemoveCasBinPolices(e *casbin.Enforcer, pType string, rules [][]string) error

func DiffUintSlice added in v1.0.89

func DiffUintSlice(oldList, newList []uint) (toDelete, toAdd []uint)

func GenPassword

func GenPassword(realPwd string) (encryptPwdBase, key, salt string)

Types

type ICPRecord

type ICPRecord struct {
	IsShow bool   `json:"isShow"`
	Icon   string `json:"icon"`
	Href   string `json:"href"`
	Text   string `json:"text"`
}

func DefaultICPRecord

func DefaultICPRecord() ICPRecord

type MpsRecord

type MpsRecord struct {
	IsShow bool   `json:"isShow"`
	Icon   string `json:"icon"`
	Href   string `json:"href"`
	Text   string `json:"text"`
}

func DefaultMpsRecord

func DefaultMpsRecord() MpsRecord

Jump to

Keyboard shortcuts

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