mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
style: ScalarType
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import { MessageType, BinaryReader, RepeatType } from '@protobuf-ts/runtime';
|
||||
import { MessageType, BinaryReader, ScalarType, RepeatType } from '@protobuf-ts/runtime';
|
||||
|
||||
export const LikeDetailType = new MessageType("LikeDetailType", [
|
||||
{ no: 1, name: "txt", kind: "scalar", T: 9 /* string */ },
|
||||
{ no: 2, name: "uin", kind: "scalar", T: 3 /* int64 */ },
|
||||
{ no: 3, name: "nickname", kind: "scalar", T: 9 /* string */ }
|
||||
{ no: 1, name: "txt", kind: "scalar", T: ScalarType.STRING /* string */ },
|
||||
{ no: 2, name: "uin", kind: "scalar", T: ScalarType.INT64 /* int64 */ },
|
||||
{ no: 3, name: "nickname", kind: "scalar", T: ScalarType.STRING /* string */ }
|
||||
]);
|
||||
|
||||
export const LikeMsgType = new MessageType("LikeMsgType", [
|
||||
{ no: 1, name: "times", kind: "scalar", T: 5 /* int32 */ },
|
||||
{ no: 2, name: "time", kind: "scalar", T: 5 /* int32 */ },
|
||||
{ no: 1, name: "times", kind: "scalar", T: ScalarType.INT32 /* int32 */ },
|
||||
{ no: 2, name: "time", kind: "scalar", T: ScalarType.INT32 /* int32 */ },
|
||||
{ no: 3, name: "detail", kind: "message", T: () => LikeDetailType }
|
||||
]);
|
||||
|
||||
@@ -17,29 +17,29 @@ export const ProfileLikeSubTipType = new MessageType("ProfileLikeSubTipType", [
|
||||
]);
|
||||
|
||||
export const ProfileLikeTipType = new MessageType("ProfileLikeTipType", [
|
||||
{ no: 1, name: "msgType", kind: "scalar", T: 5 /* int32 */ },
|
||||
{ no: 2, name: "subType", kind: "scalar", T: 5 /* int32 */ },
|
||||
{ no: 1, name: "msgType", kind: "scalar", T: ScalarType.INT32 /* int32 */ },
|
||||
{ no: 2, name: "subType", kind: "scalar", T: ScalarType.INT32 /* int32 */ },
|
||||
{ no: 3, name: "content", kind: "message", T: () => ProfileLikeSubTipType }
|
||||
]);
|
||||
|
||||
export const SysMessageHeaderType = new MessageType("SysMessageHeaderType", [
|
||||
{ no: 1, name: "id", kind: "scalar", T: 9 /* string */ },
|
||||
{ no: 2, name: "timestamp", kind: "scalar", T: 5 /* int32 */ },
|
||||
{ no: 3, name: "sender", kind: "scalar", T: 9 /* string */ }
|
||||
{ no: 1, name: "id", kind: "scalar", T: ScalarType.STRING /* string */ },
|
||||
{ no: 2, name: "timestamp", kind: "scalar", T: ScalarType.INT32 /* int32 */ },
|
||||
{ no: 3, name: "sender", kind: "scalar", T: ScalarType.STRING /* string */ }
|
||||
]);
|
||||
|
||||
export const SysMessageMsgSpecType = new MessageType("SysMessageMsgSpecType", [
|
||||
{ no: 1, name: "msgType", kind: "scalar", T: 5 /* int32 */ },
|
||||
{ no: 2, name: "subType", kind: "scalar", T: 5 /* int32 */ },
|
||||
{ no: 3, name: "subSubType", kind: "scalar", T: 5 /* int32 */ },
|
||||
{ no: 4, name: "msgSeq", kind: "scalar", T: 5 /* int32 */ },
|
||||
{ no: 5, name: "time", kind: "scalar", T: 5 /* int32 */ },
|
||||
{ no: 6, name: "msgId", kind: "scalar", T: 3 /* int64 */ },
|
||||
{ no: 7, name: "other", kind: "scalar", T: 5 /* int32 */ }
|
||||
{ no: 1, name: "msgType", kind: "scalar", T: ScalarType.INT32 /* int32 */ },
|
||||
{ no: 2, name: "subType", kind: "scalar", T: ScalarType.INT32 /* int32 */ },
|
||||
{ no: 3, name: "subSubType", kind: "scalar", T: ScalarType.INT32 /* int32 */ },
|
||||
{ no: 4, name: "msgSeq", kind: "scalar", T: ScalarType.INT32 /* int32 */ },
|
||||
{ no: 5, name: "time", kind: "scalar", T: ScalarType.INT32 /* int32 */ },
|
||||
{ no: 6, name: "msgId", kind: "scalar", T: ScalarType.INT64 /* int64 */ },
|
||||
{ no: 7, name: "other", kind: "scalar", T: ScalarType.INT32 /* int32 */ }
|
||||
]);
|
||||
|
||||
export const SysMessageBodyWrapperType = new MessageType("SysMessageBodyWrapperType", [
|
||||
{ no: 1, name: "wrappedBody", kind: "scalar", T: 12 /* bytes */ }
|
||||
{ no: 1, name: "wrappedBody", kind: "scalar", T: ScalarType.BYTES /* bytes */ }
|
||||
]);
|
||||
|
||||
export const SysMessageType = new MessageType("SysMessageType", [
|
||||
|
||||
Reference in New Issue
Block a user