Documentation ¶
Index ¶
- func AuthFunc() gin.HandlerFunc
- func CryptPrivate() gin.HandlerFunc
- func Crypto() gin.HandlerFunc
- func DecryptionByte(encryptionData string) []byte
- func DecryptionByteArray(encryptionData []byte) []byte
- func EncryptionByte(resultStr []byte) (string, error)
- func EncryptionByteNoError(resultStr []byte) string
- func EncryptionInterface(resultJson map[string]interface{}) (string, error)
- func EncryptionInterfaceLog(resultJson map[string]interface{}) string
- func EncryptionSend(code int, resultJson map[string]interface{}, context *gin.Context)
- func EncryptionStreamSend(code int, result []byte, context *gin.Context)
- func EncryptionString(jsonRes string) (string, error)
- func GetDeCryptoString(context *gin.Context) []byte
- func GetDecryptedString(context *gin.Context) []byte
- func GetRawString(context *gin.Context) []byte
- func QuietCrypto() gin.HandlerFunc
- func SetCryptFunc(crypt ...CryptFunc)
- func TokenRole() gin.HandlerFunc
- type CryptFunc
- type SignData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthFunc ¶
func AuthFunc() gin.HandlerFunc
func CryptPrivate ¶
func CryptPrivate() gin.HandlerFunc
func Crypto ¶
func Crypto() gin.HandlerFunc
func DecryptionByte ¶
func DecryptionByteArray ¶
func EncryptionByte ¶
func EncryptionByteNoError ¶
func EncryptionInterface ¶
func EncryptionInterfaceLog ¶
func EncryptionSend ¶
func EncryptionStreamSend ¶
func EncryptionString ¶
func GetDeCryptoString ¶
func GetDecryptedString ¶
func GetRawString ¶
func QuietCrypto ¶
func QuietCrypto() gin.HandlerFunc
func SetCryptFunc ¶
func SetCryptFunc( crypt ...CryptFunc)
func TokenRole ¶
func TokenRole() gin.HandlerFunc
Types ¶
type SignData ¶
type SignData struct { Id int `json:"id" ` Email string `json:"email" ` CustomerId int64 `json:"custom" ` CustomerCode string `json:"customerCode" ` Granted string `json:"granted" ` Level int64 `json:"userLevel" ` PhoneNumber string `json:"phoneNumber"` JiraAccount string `json:"jiraAccount"` JiraPassword string `json:"jiraPassword"` RoleCode []string `json:"role" ` GroupCode []string `json:"groupCode"` }
func CheckTokenString ¶
Click to show internal directories.
Click to hide internal directories.