refactor: packet

This commit is contained in:
pk5ls20 committed 2024-10-14 13:59:34 +08:00
1 parent aa188a6e89
commit b4cb3ddf1c
27 files changed
+42 -39

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { ScalarType } from "@protobuf-ts/runtime";
import { ProtoField } from "../NapProto";
export const OidbSvcTrpcTcpBase = {
command: ProtoField(1, ScalarType.UINT32),
subCommand: ProtoField(2, ScalarType.UINT32),
body: ProtoField(4, ScalarType.BYTES),
errorMsg: ProtoField(5, ScalarType.STRING, true),
isReserved: ProtoField(12, ScalarType.UINT32)
}
export const OidbSvcTrpcTcpBaseRsp = {
body: ProtoField(4, ScalarType.BYTES)
}