-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package oidb | ||
|
||
import ( | ||
"github.com/LagrangeDev/LagrangeGo/client/packets/pb/service/oidb" | ||
) | ||
|
||
func BuildDeleteFriendReq(uid string, block bool) (*Packet, error) { | ||
body := oidb.OidbSvcTrpcTcp0X126B_0{ | ||
Field1: &oidb.OidbSvcTrpcTcp0X126B_0_Field1{ | ||
TargetUid: uid, | ||
Field2: &oidb.OidbSvcTrpcTcp0X126B_0_Field1_2{ | ||
Field1: 130, | ||
Field2: 109, | ||
Field3: &oidb.OidbSvcTrpcTcp0X126B_0_Field1_2_3{ | ||
Field1: 8, | ||
Field2: 8, | ||
Field3: 50, | ||
}, | ||
}, | ||
Block: block, | ||
Field4: true, | ||
}, | ||
} | ||
return BuildOidbPacket(0x126B, 0, &body, false, false) | ||
} | ||
|
||
func ParseDeleteFriendResp(data []byte) error { | ||
return CheckError(data) | ||
} |
31 changes: 31 additions & 0 deletions
31
client/packets/pb/service/oidb/OidbSvcTrpcTcp0x126B_0.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
client/packets/pb/service/oidb/OidbSvcTrpcTcp0x126B_0.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
syntax = "proto3"; | ||
|
||
option go_package = "github.com/LagrangeDev/LagrangeGo/client/packets/pb/service/oidb"; | ||
|
||
message OidbSvcTrpcTcp0x126B_0 { | ||
OidbSvcTrpcTcp0x126B_0_Field1 Field1 = 1; | ||
} | ||
|
||
message OidbSvcTrpcTcp0x126B_0_Field1 { | ||
string TargetUid = 1; | ||
OidbSvcTrpcTcp0x126B_0_Field1_2 Field2 = 2; | ||
bool block = 3; | ||
bool Field4 = 4; // true | ||
} | ||
|
||
message OidbSvcTrpcTcp0x126B_0_Field1_2 { | ||
uint32 Field1 = 1; // 130 | ||
uint32 Field2 = 2; // 109 | ||
OidbSvcTrpcTcp0x126B_0_Field1_2_3 Field3 = 3; | ||
} | ||
|
||
message OidbSvcTrpcTcp0x126B_0_Field1_2_3 { | ||
uint32 Field1 = 1; // 8 | ||
uint32 Field2 = 2; // 8 | ||
uint32 Field3 = 3; // 50 | ||
} |