Documentation ¶
Index ¶
- func AesDecrypt(cryted string) string
- func AesEncrypt(orig string) string
- func GenerateTree[T any](list []T, getAttr func(T) (id any, pid any)) (res []treeNode[T])
- func PKCS7Padding(ciphertext []byte, blocksize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func ParseJson(jsonStr string, target any) error
- func RemoveDup[T any](arr []T) (res []T)
- func RemoveDupCustom[T any](arr []T, getValue func(T) any) (res []T)
- func ResponseFail(c *gin.Context, errNo int, message string)
- func ResponseFailDefault(c *gin.Context)
- func ResponseSuccess(c *gin.Context, data any)
- func SliceIncludes[T any](slice []T, ele T) bool
- func ToJson(data interface{}) string
- func UseRedis[T any](key string, getData func() (T, error), expires time.Duration) (res T, errOut error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func AesEncrypt ¶
func GenerateTree ¶
list生成树方法
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func RemoveDupCustom ¶
自定义节点切片去重方法
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.