Documentation ¶
Index ¶
- Constants
- Variables
- func AESDecrypt(crypted, key []byte) ([]byte, error)
- func Get(apiURL string, params url.Values) (rs []byte, err error)
- func GetIDCardText(imageBase64 string) (gjson.Result, error)
- func GetLocation() *time.Location
- func GetRandomString(length int) string
- func JSON(c *gin.Context, message ResponseMesage)
- func MD5(str string) string
- func Post(apiURL string, params url.Values) (rs []byte, err error)
- func RandNumber(len int) string
- func SendSMS(mobile, tplId, tplValue string) error
- func TokenGen(c *gin.Context, data map[string]interface{}) (string, error)
- func UUID() string
- type GError
- type JwtCustomClaims
- type ResponseMesage
Constants ¶
View Source
const APPKEY = "3222320339d628c7d4aa099c9150bfc4" //您申请的APPKEY
View Source
const JuheURL = "http://v.juhe.cn/sms/send"
Variables ¶
View Source
var Glog *log.Logger
Functions ¶
func AESDecrypt ¶
func GetLocation ¶
func JSON ¶
func JSON(c *gin.Context, message ResponseMesage)
func RandNumber ¶
Types ¶
type JwtCustomClaims ¶
type JwtCustomClaims struct { Id string `json:"id"` Phone string `json:"phone"` ForgotPasswd bool `json:"forgotPasswd"` jwt.StandardClaims }
JwtCustomClaims are custom claims extending default ones.
type ResponseMesage ¶
Click to show internal directories.
Click to hide internal directories.