Documentation ¶
Index ¶
- Variables
- func Base64Decode(s string) ([]byte, error)
- func Base64Encode(data []byte) string
- func Base64URLDecode(s string) ([]byte, error)
- func Base64URLEncode(data []byte) string
- func GenerateID() string
- func GetAuthModel(ctx *gin.Context) request.AuthJWT
- func GetContentTypeByFileName(filename string) (string, string)
- func GetPassword(password string, sale string) string
- func InitJWT()
- func InitPgSQL(pgConf *conf.PgSQLConfig) (*gorm.DB, error)
- func Md5Encode(str string) string
- func PrintObj(obj interface{})
- func RandKey(ln int) string
- func RandSMSCode(ln int) string
- func XRand(max int, min int) int
Constants ¶
This section is empty.
Variables ¶
View Source
var JWT *jwt.JWT
Functions ¶
func GenerateID ¶
func GenerateID() string
func GetPassword ¶
func RandSMSCode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.