mini_message

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decryptor

type Decryptor struct {
	Err error
	// contains filtered or unexported fields
}

Decryptor controls all decrypt features

func NewDecryptor

func NewDecryptor(appID, sessionKey string) (*Decryptor, error)

New creates a decryptor

func (*Decryptor) PhoneInfo

func (decryptor *Decryptor) PhoneInfo(encryptedData, iv string) *PhoneInfo

Run decrypt the encryped rundata

func (*Decryptor) Profile

func (decryptor *Decryptor) Profile(encryptedData, iv string) *Profile

Profile decrypt the encryped profile

func (*Decryptor) Run

func (decryptor *Decryptor) Run(encryptedData, iv string) *Run

Run decrypt the encryped rundata

func (*Decryptor) Share

func (decryptor *Decryptor) Share(encryptedData, iv string) *Share

Share decrypt the encryped share ticket

type PhoneInfo

type PhoneInfo struct {
	PhoneNumber     string `json:"phoneNumber"`
	PurePhoneNumber string `json:"purePhoneNumber"`
	CountryCode     string `json:"countryCode"`
	Watermark       struct {
		Timestamp int64  `json:"timestamp"`
		AppID     string `json:"appid"`
	} `json:"watermark"`
}

PhoneInfo 用户手机号

type Profile

type Profile struct {
	OpenID    string    `json:"openId"`
	UnionID   string    `json:"unionId"`
	NickName  string    `json:"nickName"`
	Gender    int       `json:"gender"`
	City      string    `json:"city"`
	Province  string    `json:"province"`
	Country   string    `json:"country"`
	AvatarURL string    `json:"avatarUrl"`
	Language  string    `json:"language"`
	Watermark Watermark `json:"watermark"`
}

type Run

type Run struct {
	Data []RunRecord `json:"stepInfoList"`
}

type RunRecord

type RunRecord struct {
	Timestamp int64 `json:"timestamp"`
	Steps     int   `json:"step"`
}

type Share

type Share struct {
	OpenGId   string    `json:"openGId"`
	Watermark Watermark `json:"watermark"`
}

type Watermark

type Watermark struct {
	Timestamp int64  `json:"timestamp"`
	AppID     string `json:"appid"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL