mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
26 lines
440 B
Go
26 lines
440 B
Go
package network
|
|
|
|
type RequestType uint32
|
|
|
|
const (
|
|
RequestTypeLogin = 0x0A
|
|
RequestTypeSimple = 0x0B
|
|
)
|
|
|
|
type EncryptType uint32
|
|
|
|
const (
|
|
EncryptTypeNoEncrypt EncryptType = iota // 0x00
|
|
EncryptTypeD2Key // 0x01
|
|
EncryptTypeEmptyKey // 0x02
|
|
)
|
|
|
|
type Request struct {
|
|
Type RequestType
|
|
EncryptType EncryptType
|
|
SequenceID int32
|
|
Uin int64
|
|
CommandName string
|
|
Body []byte
|
|
}
|