Documentation ¶
Index ¶
- Variables
- func Create(userid string) string
- func CreateUnifiedOrder(payinfo PayInfo) (wxpay.Params, error)
- func FilterFunc(ctx *context.Context)
- func GenerateDataSign(requestdata string) string
- func GenerateRequestData(shippercode, logisticcode, ordercode string) string
- func GetUserID(tokenstr string) string
- func Parse(tokenstr string) *jwt.Token
- func Verify(tokenstr string) bool
- type CustomClaims
- type ExpressFromData
- type ExpressRequestData
- type ExpressResult
- type ExpressRtnInfo
- type PayInfo
- type ResUserInfo
- type Traces
- type WXLoginResponse
- type WXUserInfo
- type Watermark
Constants ¶
This section is empty.
Variables ¶
View Source
var LoginUserId string
Functions ¶
func FilterFunc ¶
func GenerateDataSign ¶
func GenerateRequestData ¶
Types ¶
type CustomClaims ¶
type CustomClaims struct { UserID string `json:"userid"` jwt.StandardClaims }
type ExpressFromData ¶
type ExpressFromData struct { RequestData string EBusinessId string RequestType string DataSign string DataType string }
func GenerateFromData ¶
func GenerateFromData(shippercode, logisticcode, ordercode string) ExpressFromData
type ExpressRequestData ¶
type ExpressResult ¶
type ExpressRtnInfo ¶
type ExpressRtnInfo struct { Success bool `json:"success"` ShipperCode string `json:"shipper_code"` ShipperName string `json:"shipper_name"` LogisticCode string `json:"logistic_code"` IsFinish int `json:"is_finish"` Traces []Traces `json:"traces"` RequestTime int64 `json:"request_time"` }
func QueryExpress ¶
func QueryExpress(shippercode, logisticcode string, ordercode string) ExpressRtnInfo
type ResUserInfo ¶
type ResUserInfo struct { UserInfo WXUserInfo `json:"userInfo"` RawData string `json:"rawData"` Signature string `json:"signature"` EncryptedData string `json:"encryptedData"` IV string `json:"iv"` }
type WXLoginResponse ¶
type WXUserInfo ¶
type WXUserInfo struct { OpenID string `json:"openId,omitempty"` NickName string `json:"nickName"` AvatarUrl string `json:"avatarUrl"` Gender int `json:"gender"` Country string `json:"country"` Province string `json:"province"` City string `json:"city"` UnionID string `json:"unionId,omitempty"` Language string `json:"language"` Watermark Watermark `json:"watermark,omitempty"` }
func DecryptUserInfoData ¶
func DecryptUserInfoData(sessionKey string, encryptedData string, iv string) *WXUserInfo
func Login ¶
func Login(code string, fullUserInfo ResUserInfo) *WXUserInfo
Click to show internal directories.
Click to hide internal directories.