github.com/LagrangeDev/LagrangeGo@v0.0.0-20240512064304-ad4a85e10cb4/client/internal/network/request.go (about) 1 package network 2 3 // from https://github.com/Mrs4s/MiraiGo/blob/master/client/internal/network/request.go 4 5 type RequestType uint32 6 7 const ( 8 RequestTypeLogin = 0x0A 9 RequestTypeSimple = 0x0B 10 RequestTypeNT = 0x0C 11 ) 12 13 type EncryptType uint32 14 15 const ( 16 EncryptTypeNoEncrypt EncryptType = iota // 0x00 17 EncryptTypeD2Key // 0x01 18 EncryptTypeEmptyKey // 0x02 19 ) 20 21 type Request struct { 22 SequenceID uint32 23 Uin int64 24 Sign map[string]string 25 CommandName string 26 Body []byte 27 }