feat: minor feat client & add TODO

This commit is contained in:
pk5ls20 committed 2024-10-14 18:03:30 +08:00
1 parent eabfffba65
commit f450d52268
3 files changed
+6 -4

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
// TODO: refactor with NapProto
import { MessageType, BinaryReader, ScalarType } from '@protobuf-ts/runtime';
export const BodyInner = new MessageType("BodyInner", [
@@ -45,4 +46,4 @@ export function decodeMessage(buffer: Uint8Array): any {
export function decodeRecallGroup(buffer: Uint8Array): any {
const reader = new BinaryReader(buffer);
return RecallGroup.internalBinaryRead(reader, reader.len, { readUnknownField: true, readerFactory: () => new BinaryReader(buffer) });
}
}
+2 -1
View File
@@ -1,3 +1,4 @@
// TODO: refactor with NapProto
import { MessageType, BinaryReader, ScalarType, RepeatType } from '@protobuf-ts/runtime';
export const LikeDetail = new MessageType("likeDetail", [
@@ -55,4 +56,4 @@ export function decodeProfileLikeTip(buffer: Uint8Array): any {
export function decodeSysMessage(buffer: Uint8Array): any {
const reader = new BinaryReader(buffer);
return SysMessage.internalBinaryRead(reader, reader.len, { readUnknownField: true, readerFactory: () => new BinaryReader(buffer) });
}
}