github.com/Mrs4s/MiraiGo@v0.0.0-20240226124653-54bdd873e3fe/client/internal/network/request.go (about)

     1  package network
     2  
     3  type RequestType uint32
     4  
     5  const (
     6  	RequestTypeLogin  = 0x0A
     7  	RequestTypeSimple = 0x0B
     8  )
     9  
    10  type EncryptType uint32
    11  
    12  const (
    13  	EncryptTypeNoEncrypt EncryptType = iota // 0x00
    14  	EncryptTypeD2Key                        // 0x01
    15  	EncryptTypeEmptyKey                     // 0x02
    16  )
    17  
    18  type Request struct {
    19  	Type        RequestType
    20  	EncryptType EncryptType
    21  	SequenceID  int32
    22  	Uin         int64
    23  	CommandName string
    24  	Body        []byte
    25  }