Documentation ¶
Index ¶
- Constants
- func ArrStrCmp(src []string, dest []string) ([]string, []string)
- func ArrUintCmp(src []uint, dest []uint) ([]uint, []uint)
- func DecodeStrFromBase64(str string) string
- func EncodeStr2Base64(str string) string
- func Err(c *gin.Context, err *RspError, data interface{})
- func Json2Struct(str string, obj interface{})
- func JsonI2Struct(str interface{}, obj interface{})
- func NewGenPasswd(passwd string) string
- func NewParPasswd(passwd string) string
- func RSADecrypt(base64Data, privateBytes []byte) ([]byte, error)
- func RSAEncrypt(data, publicBytes []byte) ([]byte, error)
- func Response(c *gin.Context, httpStatus int, code int, data gin.H, message string)
- func SendMail(sendto []string, pass string) error
- func SliceToString(src []uint, delim string) string
- func StringToSlice(src string, delim string) []uint
- func Struct2Json(obj interface{}) string
- func Success(c *gin.Context, data interface{})
- type H
- type PageOption
- type RspError
Constants ¶
View Source
const ( SystemErr = 500 MySqlErr = 501 LdapErr = 505 OperationErr = 506 ValidatorErr = 412 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PageOption ¶
Click to show internal directories.
Click to hide internal directories.