model

package
v0.0.0-...-cf331e6 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

README

model 实体模型结构说明

文件名称 说明
interior.go QQ协议重要信息
Const.go 一些常量
codec.go 业务代码
Msg.go 群消息相关
Summary.go 资料信息
TgtInfo.go TGT令牌
WebSiteKey.go 各大网站Key

Documentation

Index

Constants

View Source
const (
	FontNameMicrosoftYaHei = "微软雅黑"
	FontEncodingUTF8       = 0x86_22
	FontEncodingEN         = 0x00_00
	FontEncodingGBK        = 0x86_00
)
View Source
const (
	WebQun = "qun.qq.com"
	WebT   = "t.qq.com"
)
View Source
const (
	LogicSuc = 0x00 //业务请求成功
)

Variables

View Source
var (
	TxServer = []string{"183.60.48.174", "sz.tencent.com", "sz2.tencent.com", "sz3.tencent.com", "sz4.tencent.com", "sz5.tencent.com", "sz6.tencent.com", "sz7.tencent.com", "sz8.tencent.com", "sz9.tencent.com"}
)
View Source
var (
	WebSite = []string{WebT, WebQun, "qzone.qq.com", "qzone.qq.com", "ke.qq.com"}
)

Functions

func Msg2Json

func Msg2Json(msg *GroupMsg) string

Types

type Birthday

type Birthday struct {
	Year  uint32
	Month uint8
	Day   uint8
}

type Computer

type Computer struct {
	ComputerId   []byte `json:"ComputerId"`
	ComputerIdEx []byte `json:"ComputerIdEx"`
	DeviceID     []byte `json:"DeviceID"`
	ComputerName string `json:"ComputerName"`
	MacGuid      []byte `json:"MacGuid"`
	RedirectIp   *list.List
	ConnectIp    string `json:"ConnectIp"`
	WlanIp       string
}

Computer 硬件信息

type Font

type Font struct {
	Red      uint8  `json:"Red"`
	Blue     uint8  `json:"Blue"`
	Green    uint8  `json:"Green"`
	Size     uint8  `json:"Size"`
	Style    uint8  `json:"Style"`
	Encoding uint16 `json:"Encoding"`
	FontName string `json:"FontName"`
}

func (*Font) ToBytes

func (this *Font) ToBytes() []byte

type GroupMember

type GroupMember struct {
	Name string
	Card string
}

type GroupMsg

type GroupMsg struct {
	Account   uint64 `json:"Uin"`
	GroupName string
	GroupUin  uint64 `json:"GroupUin"` //群号
	SenderUin uint64 `json:"FromUin"`  //发送者QQ
	FromName  string
	MsgID     uint32 `json:"MsgID"`
	MsgSeq    uint32 `json:"MsgSeq"`
	Msg       string `json:"Msg"`
	MsgTime   `json:"Time"`
	Font      `json:"Font"`
	// contains filtered or unexported fields
}

type Information

type Information struct {
	LongUin    uint64
	Account    string
	PassWord   []byte //md5加密
	PingTime   uint32
	SelfWebKey *WebKey
	Computer
}

type MsgTime

type MsgTime struct {
	Receive uint64 `json:"Receive"`
	Send    uint64 `json:"Send"`
}

type QRResp

type QRResp struct {
	Status    uint8  `json:"status"`
	QRCode    []byte `json:"bufQRCode"`
	Sig0x30   []byte `json:"bufSig0X30"`
	SigQRSing []byte `json:"bufSigQRSing"`
	BufQRKey  []byte `json:"bufQRKey"`
}

type Sig

type Sig struct {
	BufSigClientAddr    []byte /*0825返回*/
	BufTgTGTKey         []byte
	BufQR303            []byte
	BufSession          []byte
	BufPwdForConn       []byte
	BufSigHttpConnToken []byte
	Buf0102             []byte
	Buf0202             []byte
	BufTgt              []byte
}

Sig 一些token/sign

type TeaKey

type TeaKey struct {
	Ping0825Key []byte
	Ping0818Key []byte
	PublicKey   []byte
	ShareKey    []byte
	SessionKey  []byte
	HttpConn    []byte
}

type TgtInfo

type TgtInfo struct {
	BufTgTgTKey      []byte `json:"bufTgTgTKey"`
	BufTgt           []byte `json:"bufTgt"`
	BufGTKeyST       []byte `json:"bufGTKeyST"`
	BufServiceTicket []byte `json:"bufServiceTicket"`
	BufSessionKey    []byte `json:"bufSessionKey"`
	BufSession       []byte `json:"bufSession"`
	Buf0102          []byte `json:"buf0102"`
	Buf0202          []byte `json:"buf0202"`
	// contains filtered or unexported fields
}

func (*TgtInfo) Decode

func (this *TgtInfo) Decode(data string) *TgtInfo

func (*TgtInfo) Encode

func (this *TgtInfo) Encode() string

type Version

type Version struct {
	SAppName     string
	DwSSOConfig  uint32
	DwSSOVersion uint32 //Sso版本
	DwPubNo      uint32
	ServiceId    uint32 //客户端ID
	DwAppVer     uint32 //客户端版本
	CMainVer     uint16
	CSubVer      uint16 //同CMainVer
	DwQdVersion  uint32
	DwClientType uint32
	ClientMd5    []byte //客户端MD5

}

type WebKey

type WebKey struct {
	Skey, PSkey string
	//WebSiteKeys
	//	BufQRKey=website
	WebSiteKeys map[string]string
}

Jump to

Keyboard shortcuts

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