@wxbot/wechat-api-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +233 -0
- package/dist/geweChat/gewe/apiCore/geweBaseApi.d.ts +17 -0
- package/dist/geweChat/gewe/apiCore/geweBaseApi.d.ts.map +1 -0
- package/dist/geweChat/gewe/apiCore/geweBaseApi.js +59 -0
- package/dist/geweChat/gewe/apiCore/geweBaseApi.js.map +1 -0
- package/dist/geweChat/gewe/clientApi/geweMessage.d.ts +33 -0
- package/dist/geweChat/gewe/clientApi/geweMessage.d.ts.map +1 -0
- package/dist/geweChat/gewe/clientApi/geweMessage.js +216 -0
- package/dist/geweChat/gewe/clientApi/geweMessage.js.map +1 -0
- package/dist/geweChat/gewe/clientApi/gewe_Api.d.ts +14 -0
- package/dist/geweChat/gewe/clientApi/gewe_Api.d.ts.map +1 -0
- package/dist/geweChat/gewe/clientApi/gewe_Api.js +24 -0
- package/dist/geweChat/gewe/clientApi/gewe_Api.js.map +1 -0
- package/dist/geweChat/gewe/clientApi/gewe_ChatRoom.d.ts +15 -0
- package/dist/geweChat/gewe/clientApi/gewe_ChatRoom.d.ts.map +1 -0
- package/dist/geweChat/gewe/clientApi/gewe_ChatRoom.js +125 -0
- package/dist/geweChat/gewe/clientApi/gewe_ChatRoom.js.map +1 -0
- package/dist/geweChat/gewe/clientApi/gewe_Friend.d.ts +17 -0
- package/dist/geweChat/gewe/clientApi/gewe_Friend.d.ts.map +1 -0
- package/dist/geweChat/gewe/clientApi/gewe_Friend.js +110 -0
- package/dist/geweChat/gewe/clientApi/gewe_Friend.js.map +1 -0
- package/dist/geweChat/gewe/clientApi/gewe_Login.d.ts +27 -0
- package/dist/geweChat/gewe/clientApi/gewe_Login.d.ts.map +1 -0
- package/dist/geweChat/gewe/clientApi/gewe_Login.js +119 -0
- package/dist/geweChat/gewe/clientApi/gewe_Login.js.map +1 -0
- package/dist/geweChat/gewe/clientApi/gewe_Tools.d.ts +13 -0
- package/dist/geweChat/gewe/clientApi/gewe_Tools.d.ts.map +1 -0
- package/dist/geweChat/gewe/clientApi/gewe_Tools.js +45 -0
- package/dist/geweChat/gewe/clientApi/gewe_Tools.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/protocolTypes.d.ts +12 -0
- package/dist/protocolTypes.d.ts.map +1 -0
- package/dist/protocolTypes.js +11 -0
- package/dist/protocolTypes.js.map +1 -0
- package/dist/utils/gameCore.d.ts +7 -0
- package/dist/utils/gameCore.d.ts.map +1 -0
- package/dist/utils/gameCore.js +26 -0
- package/dist/utils/gameCore.js.map +1 -0
- package/dist/utils/index.d.ts +14 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +150 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/linq.d.ts +108 -0
- package/dist/utils/linq.d.ts.map +1 -0
- package/dist/utils/linq.js +24 -0
- package/dist/utils/linq.js.map +1 -0
- package/dist/weChatBase/EventBus.d.ts +10 -0
- package/dist/weChatBase/EventBus.d.ts.map +1 -0
- package/dist/weChatBase/EventBus.js +32 -0
- package/dist/weChatBase/EventBus.js.map +1 -0
- package/dist/weChatBase/entity/chatMemberInfo.d.ts +12 -0
- package/dist/weChatBase/entity/chatMemberInfo.d.ts.map +1 -0
- package/dist/weChatBase/entity/chatMemberInfo.js +7 -0
- package/dist/weChatBase/entity/chatMemberInfo.js.map +1 -0
- package/dist/weChatBase/entity/simpleSession.d.ts +24 -0
- package/dist/weChatBase/entity/simpleSession.d.ts.map +1 -0
- package/dist/weChatBase/entity/simpleSession.js +8 -0
- package/dist/weChatBase/entity/simpleSession.js.map +1 -0
- package/dist/weChatBase/interface/weChatApiBase.d.ts +14 -0
- package/dist/weChatBase/interface/weChatApiBase.d.ts.map +1 -0
- package/dist/weChatBase/interface/weChatApiBase.js +9 -0
- package/dist/weChatBase/interface/weChatApiBase.js.map +1 -0
- package/dist/weChatBase/interface/weChatBase.d.ts +7 -0
- package/dist/weChatBase/interface/weChatBase.d.ts.map +1 -0
- package/dist/weChatBase/interface/weChatBase.js +12 -0
- package/dist/weChatBase/interface/weChatBase.js.map +1 -0
- package/dist/weChatBase/interface/weChatChatRoomBase.d.ts +33 -0
- package/dist/weChatBase/interface/weChatChatRoomBase.d.ts.map +1 -0
- package/dist/weChatBase/interface/weChatChatRoomBase.js +9 -0
- package/dist/weChatBase/interface/weChatChatRoomBase.js.map +1 -0
- package/dist/weChatBase/interface/weChatFriendBase.d.ts +47 -0
- package/dist/weChatBase/interface/weChatFriendBase.d.ts.map +1 -0
- package/dist/weChatBase/interface/weChatFriendBase.js +9 -0
- package/dist/weChatBase/interface/weChatFriendBase.js.map +1 -0
- package/dist/weChatBase/interface/weChatLoginBase.d.ts +70 -0
- package/dist/weChatBase/interface/weChatLoginBase.d.ts.map +1 -0
- package/dist/weChatBase/interface/weChatLoginBase.js +9 -0
- package/dist/weChatBase/interface/weChatLoginBase.js.map +1 -0
- package/dist/weChatBase/interface/weChatMessageBase.d.ts +98 -0
- package/dist/weChatBase/interface/weChatMessageBase.d.ts.map +1 -0
- package/dist/weChatBase/interface/weChatMessageBase.js +15 -0
- package/dist/weChatBase/interface/weChatMessageBase.js.map +1 -0
- package/dist/weChatBase/interface/weChatToolsBase.d.ts +26 -0
- package/dist/weChatBase/interface/weChatToolsBase.d.ts.map +1 -0
- package/dist/weChatBase/interface/weChatToolsBase.js +8 -0
- package/dist/weChatBase/interface/weChatToolsBase.js.map +1 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomInfoRequest.d.ts +31 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomInfoRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomInfoRequest.js +16 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomInfoRequest.js.map +1 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomMemberInfoRequest.d.ts +38 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomMemberInfoRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomMemberInfoRequest.js +16 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomMemberInfoRequest.js.map +1 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomMemberListRequest.d.ts +11 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomMemberListRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomMemberListRequest.js +10 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomMemberListRequest.js.map +1 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomQRCodeRequest.d.ts +9 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomQRCodeRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomQRCodeRequest.js +10 -0
- package/dist/weChatBase/request/chatRoom/wxGetChatroomQRCodeRequest.js.map +1 -0
- package/dist/weChatBase/request/friend/friendPassVerifyRequest.d.ts +10 -0
- package/dist/weChatBase/request/friend/friendPassVerifyRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/friend/friendPassVerifyRequest.js +14 -0
- package/dist/weChatBase/request/friend/friendPassVerifyRequest.js.map +1 -0
- package/dist/weChatBase/request/friend/getContactListRequest.d.ts +17 -0
- package/dist/weChatBase/request/friend/getContactListRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/friend/getContactListRequest.js +20 -0
- package/dist/weChatBase/request/friend/getContactListRequest.js.map +1 -0
- package/dist/weChatBase/request/friend/getContactRequest.d.ts +5 -0
- package/dist/weChatBase/request/friend/getContactRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/friend/getContactRequest.js +10 -0
- package/dist/weChatBase/request/friend/getContactRequest.js.map +1 -0
- package/dist/weChatBase/request/friend/wxGetContractDetailRequest.d.ts +9 -0
- package/dist/weChatBase/request/friend/wxGetContractDetailRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/friend/wxGetContractDetailRequest.js +10 -0
- package/dist/weChatBase/request/friend/wxGetContractDetailRequest.js.map +1 -0
- package/dist/weChatBase/request/friend/wxSearchContactRequest.d.ts +19 -0
- package/dist/weChatBase/request/friend/wxSearchContactRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/friend/wxSearchContactRequest.js +13 -0
- package/dist/weChatBase/request/friend/wxSearchContactRequest.js.map +1 -0
- package/dist/weChatBase/request/friend/wxUploadContactRequest.d.ts +6 -0
- package/dist/weChatBase/request/friend/wxUploadContactRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/friend/wxUploadContactRequest.js +7 -0
- package/dist/weChatBase/request/friend/wxUploadContactRequest.js.map +1 -0
- package/dist/weChatBase/request/login/wxAutoHeartBeatRequest.d.ts +6 -0
- package/dist/weChatBase/request/login/wxAutoHeartBeatRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/login/wxAutoHeartBeatRequest.js +10 -0
- package/dist/weChatBase/request/login/wxAutoHeartBeatRequest.js.map +1 -0
- package/dist/weChatBase/request/login/wxAwakenRequest.d.ts +7 -0
- package/dist/weChatBase/request/login/wxAwakenRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/login/wxAwakenRequest.js +10 -0
- package/dist/weChatBase/request/login/wxAwakenRequest.js.map +1 -0
- package/dist/weChatBase/request/login/wxCheckOnlineRequest.d.ts +6 -0
- package/dist/weChatBase/request/login/wxCheckOnlineRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/login/wxCheckOnlineRequest.js +10 -0
- package/dist/weChatBase/request/login/wxCheckOnlineRequest.js.map +1 -0
- package/dist/weChatBase/request/login/wxDialogLoginRequest.d.ts +11 -0
- package/dist/weChatBase/request/login/wxDialogLoginRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/login/wxDialogLoginRequest.js +10 -0
- package/dist/weChatBase/request/login/wxDialogLoginRequest.js.map +1 -0
- package/dist/weChatBase/request/login/wxGetLoginQrCodeRequest.d.ts +36 -0
- package/dist/weChatBase/request/login/wxGetLoginQrCodeRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/login/wxGetLoginQrCodeRequest.js +28 -0
- package/dist/weChatBase/request/login/wxGetLoginQrCodeRequest.js.map +1 -0
- package/dist/weChatBase/request/login/wxGetLoginQrStatus.d.ts +30 -0
- package/dist/weChatBase/request/login/wxGetLoginQrStatus.d.ts.map +1 -0
- package/dist/weChatBase/request/login/wxGetLoginQrStatus.js +16 -0
- package/dist/weChatBase/request/login/wxGetLoginQrStatus.js.map +1 -0
- package/dist/weChatBase/request/login/wxGetOnlineStatusRequest.d.ts +6 -0
- package/dist/weChatBase/request/login/wxGetOnlineStatusRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/login/wxGetOnlineStatusRequest.js +10 -0
- package/dist/weChatBase/request/login/wxGetOnlineStatusRequest.js.map +1 -0
- package/dist/weChatBase/request/login/wxHeartBeatRequest.d.ts +6 -0
- package/dist/weChatBase/request/login/wxHeartBeatRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/login/wxHeartBeatRequest.js +10 -0
- package/dist/weChatBase/request/login/wxHeartBeatRequest.js.map +1 -0
- package/dist/weChatBase/request/login/wxLogOutRequest.d.ts +8 -0
- package/dist/weChatBase/request/login/wxLogOutRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/login/wxLogOutRequest.js +10 -0
- package/dist/weChatBase/request/login/wxLogOutRequest.js.map +1 -0
- package/dist/weChatBase/request/login/wxReconnectionRequest.d.ts +5 -0
- package/dist/weChatBase/request/login/wxReconnectionRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/login/wxReconnectionRequest.js +10 -0
- package/dist/weChatBase/request/login/wxReconnectionRequest.js.map +1 -0
- package/dist/weChatBase/request/login/wxTwiceAutoAuthRequest.d.ts +6 -0
- package/dist/weChatBase/request/login/wxTwiceAutoAuthRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/login/wxTwiceAutoAuthRequest.js +10 -0
- package/dist/weChatBase/request/login/wxTwiceAutoAuthRequest.js.map +1 -0
- package/dist/weChatBase/request/message/syncMessageRequest.d.ts +8 -0
- package/dist/weChatBase/request/message/syncMessageRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/message/syncMessageRequest.js +10 -0
- package/dist/weChatBase/request/message/syncMessageRequest.js.map +1 -0
- package/dist/weChatBase/request/message/wxForwardImageRequest.d.ts +19 -0
- package/dist/weChatBase/request/message/wxForwardImageRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/message/wxForwardImageRequest.js +10 -0
- package/dist/weChatBase/request/message/wxForwardImageRequest.js.map +1 -0
- package/dist/weChatBase/request/message/wxRevokeMsgRequest.d.ts +11 -0
- package/dist/weChatBase/request/message/wxRevokeMsgRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/message/wxRevokeMsgRequest.js +10 -0
- package/dist/weChatBase/request/message/wxRevokeMsgRequest.js.map +1 -0
- package/dist/weChatBase/request/message/wxSendAppRequest.d.ts +13 -0
- package/dist/weChatBase/request/message/wxSendAppRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/message/wxSendAppRequest.js +10 -0
- package/dist/weChatBase/request/message/wxSendAppRequest.js.map +1 -0
- package/dist/weChatBase/request/message/wxSendCardRequest.d.ts +14 -0
- package/dist/weChatBase/request/message/wxSendCardRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/message/wxSendCardRequest.js +10 -0
- package/dist/weChatBase/request/message/wxSendCardRequest.js.map +1 -0
- package/dist/weChatBase/request/message/wxSendEmojiRequest.d.ts +15 -0
- package/dist/weChatBase/request/message/wxSendEmojiRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/message/wxSendEmojiRequest.js +10 -0
- package/dist/weChatBase/request/message/wxSendEmojiRequest.js.map +1 -0
- package/dist/weChatBase/request/message/wxSendFileRequest.d.ts +14 -0
- package/dist/weChatBase/request/message/wxSendFileRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/message/wxSendFileRequest.js +10 -0
- package/dist/weChatBase/request/message/wxSendFileRequest.js.map +1 -0
- package/dist/weChatBase/request/message/wxSendImageRequest.d.ts +19 -0
- package/dist/weChatBase/request/message/wxSendImageRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/message/wxSendImageRequest.js +10 -0
- package/dist/weChatBase/request/message/wxSendImageRequest.js.map +1 -0
- package/dist/weChatBase/request/message/wxSendLinkRequest.d.ts +16 -0
- package/dist/weChatBase/request/message/wxSendLinkRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/message/wxSendLinkRequest.js +10 -0
- package/dist/weChatBase/request/message/wxSendLinkRequest.js.map +1 -0
- package/dist/weChatBase/request/message/wxSendLocationRequest.d.ts +5 -0
- package/dist/weChatBase/request/message/wxSendLocationRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/message/wxSendLocationRequest.js +10 -0
- package/dist/weChatBase/request/message/wxSendLocationRequest.js.map +1 -0
- package/dist/weChatBase/request/message/wxSendTxtRequest.d.ts +9 -0
- package/dist/weChatBase/request/message/wxSendTxtRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/message/wxSendTxtRequest.js +10 -0
- package/dist/weChatBase/request/message/wxSendTxtRequest.js.map +1 -0
- package/dist/weChatBase/request/message/wxSendVideoRequest.d.ts +18 -0
- package/dist/weChatBase/request/message/wxSendVideoRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/message/wxSendVideoRequest.js +10 -0
- package/dist/weChatBase/request/message/wxSendVideoRequest.js.map +1 -0
- package/dist/weChatBase/request/message/wxSendVoiceRequest.d.ts +14 -0
- package/dist/weChatBase/request/message/wxSendVoiceRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/message/wxSendVoiceRequest.js +10 -0
- package/dist/weChatBase/request/message/wxSendVoiceRequest.js.map +1 -0
- package/dist/weChatBase/request/tools/wxDownloadImgRequest.d.ts +9 -0
- package/dist/weChatBase/request/tools/wxDownloadImgRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/tools/wxDownloadImgRequest.js +14 -0
- package/dist/weChatBase/request/tools/wxDownloadImgRequest.js.map +1 -0
- package/dist/weChatBase/request/tools/wxEmojiDownloadRequest.d.ts +8 -0
- package/dist/weChatBase/request/tools/wxEmojiDownloadRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/tools/wxEmojiDownloadRequest.js +10 -0
- package/dist/weChatBase/request/tools/wxEmojiDownloadRequest.js.map +1 -0
- package/dist/weChatBase/request/tools/wxSetWebhookRequest.d.ts +7 -0
- package/dist/weChatBase/request/tools/wxSetWebhookRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/tools/wxSetWebhookRequest.js +10 -0
- package/dist/weChatBase/request/tools/wxSetWebhookRequest.js.map +1 -0
- package/dist/weChatBase/request/tools/wxUploadFileRequest.d.ts +7 -0
- package/dist/weChatBase/request/tools/wxUploadFileRequest.d.ts.map +1 -0
- package/dist/weChatBase/request/tools/wxUploadFileRequest.js +10 -0
- package/dist/weChatBase/request/tools/wxUploadFileRequest.js.map +1 -0
- package/dist/weChatBase/type/opCode.d.ts +7 -0
- package/dist/weChatBase/type/opCode.d.ts.map +1 -0
- package/dist/weChatBase/type/opCode.js +16 -0
- package/dist/weChatBase/type/opCode.js.map +1 -0
- package/dist/weChatBase/type/scene.d.ts +15 -0
- package/dist/weChatBase/type/scene.d.ts.map +1 -0
- package/dist/weChatBase/type/scene.js +32 -0
- package/dist/weChatBase/type/scene.js.map +1 -0
- package/dist/weChatBase/utils/xmlParser.d.ts +11 -0
- package/dist/weChatBase/utils/xmlParser.d.ts.map +1 -0
- package/dist/weChatBase/utils/xmlParser.js +106 -0
- package/dist/weChatBase/utils/xmlParser.js.map +1 -0
- package/dist/weChatBase/weChatAPIClientBase.d.ts +32 -0
- package/dist/weChatBase/weChatAPIClientBase.d.ts.map +1 -0
- package/dist/weChatBase/weChatAPIClientBase.js +92 -0
- package/dist/weChatBase/weChatAPIClientBase.js.map +1 -0
- package/dist/weChatBase/weChatMessage/weChatMessageType.d.ts +14 -0
- package/dist/weChatBase/weChatMessage/weChatMessageType.d.ts.map +1 -0
- package/dist/weChatBase/weChatMessage/weChatMessageType.js +29 -0
- package/dist/weChatBase/weChatMessage/weChatMessageType.js.map +1 -0
- package/dist/weChatBase/weChatMessage/weChatMsgBase.d.ts +34 -0
- package/dist/weChatBase/weChatMessage/weChatMsgBase.d.ts.map +1 -0
- package/dist/weChatBase/weChatMessage/weChatMsgBase.js +239 -0
- package/dist/weChatBase/weChatMessage/weChatMsgBase.js.map +1 -0
- package/dist/weChatBase/weChatResult.d.ts +10 -0
- package/dist/weChatBase/weChatResult.d.ts.map +1 -0
- package/dist/weChatBase/weChatResult.js +44 -0
- package/dist/weChatBase/weChatResult.js.map +1 -0
- package/dist/wechatApi.d.ts +11 -0
- package/dist/wechatApi.d.ts.map +1 -0
- package/dist/wechatApi.js +23 -0
- package/dist/wechatApi.js.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WeChatChatRoomBase } from "../../../weChatBase/interface/weChatChatRoomBase";
|
|
2
|
+
import { wxGetChatroomInfoRequest, wxGetChatroomInfoResponse } from "../../../weChatBase/request/chatRoom/wxGetChatroomInfoRequest";
|
|
3
|
+
import { wxGetChatroomMemberInfoRequest, wxGetChatroomMemberInfoResponse } from "../../../weChatBase/request/chatRoom/wxGetChatroomMemberInfoRequest";
|
|
4
|
+
import { wxGetChatroomMemberListRequest, wxGetChatroomMemberListResponse } from "../../../weChatBase/request/chatRoom/wxGetChatroomMemberListRequest";
|
|
5
|
+
import { wxGetChatroomQRCodeRequest, wxGetChatroomQRCodeResponse } from "../../../weChatBase/request/chatRoom/wxGetChatroomQRCodeRequest";
|
|
6
|
+
import { WeChatResult } from "../../../weChatBase/weChatResult";
|
|
7
|
+
import { GeweBaseApi } from "../apiCore/geweBaseApi";
|
|
8
|
+
export declare class Gewe_ChatRoom extends WeChatChatRoomBase {
|
|
9
|
+
apiClient: GeweBaseApi;
|
|
10
|
+
GetChatroomInfo(request: wxGetChatroomInfoRequest): Promise<WeChatResult<wxGetChatroomInfoResponse>>;
|
|
11
|
+
GetChatroomMemberList(request: wxGetChatroomMemberListRequest): Promise<WeChatResult<wxGetChatroomMemberListResponse>>;
|
|
12
|
+
GetChatroomQRCode(request: wxGetChatroomQRCodeRequest): Promise<WeChatResult<wxGetChatroomQRCodeResponse>>;
|
|
13
|
+
GetChatroomMemberInfo(request: wxGetChatroomMemberInfoRequest): Promise<WeChatResult<wxGetChatroomMemberInfoResponse>>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=gewe_ChatRoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gewe_ChatRoom.d.ts","sourceRoot":"","sources":["../../../../src/geweChat/gewe/clientApi/gewe_ChatRoom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAsB,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,+DAA+D,CAAC;AACxJ,OAAO,EAAwB,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,qEAAqE,CAAC;AAC5K,OAAO,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,qEAAqE,CAAC;AACtJ,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,iEAAiE,CAAC;AAC1I,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,qBAAa,aAAc,SAAQ,kBAAkB;IACjD,SAAS,cAA4C;IAErD,eAAe,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,YAAY,CAAC,yBAAyB,CAAC,CAAC;IAoCpG,qBAAqB,CAAC,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,YAAY,CAAC,+BAA+B,CAAC,CAAC;IA2BtH,iBAAiB,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC;IAkB1G,qBAAqB,CAAC,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,YAAY,CAAC,+BAA+B,CAAC,CAAC;CA0CzH"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Gewe_ChatRoom = void 0;
|
|
4
|
+
const weChatChatRoomBase_1 = require("../../../weChatBase/interface/weChatChatRoomBase");
|
|
5
|
+
const geweBaseApi_1 = require("../apiCore/geweBaseApi");
|
|
6
|
+
class Gewe_ChatRoom extends weChatChatRoomBase_1.WeChatChatRoomBase {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.apiClient = new geweBaseApi_1.GeweBaseApi(this.apiUrl, this.token);
|
|
10
|
+
}
|
|
11
|
+
GetChatroomInfo(request) {
|
|
12
|
+
return this.apiClient.postRequest({
|
|
13
|
+
url: "/gewe/v2/api/chatroom/getChatroomInfo",
|
|
14
|
+
data: {
|
|
15
|
+
appId: request.deviceId,
|
|
16
|
+
chatroomId: request.chatroomId
|
|
17
|
+
},
|
|
18
|
+
handelModel: (resultData) => {
|
|
19
|
+
return {
|
|
20
|
+
chatroomId: resultData.chatroomId,
|
|
21
|
+
nickName: resultData.nickName,
|
|
22
|
+
pyInitial: resultData.pyInitial,
|
|
23
|
+
quanPin: resultData.quanPin,
|
|
24
|
+
sex: resultData.sex,
|
|
25
|
+
remark: resultData.remark,
|
|
26
|
+
remarkPyInitial: resultData.remarkPyInitial,
|
|
27
|
+
remarkQuanPin: resultData.remarkQuanPin,
|
|
28
|
+
chatRoomNotify: resultData.chatRoomNotify,
|
|
29
|
+
chatRoomOwner: resultData.chatRoomOwner,
|
|
30
|
+
smallHeadImgUrl: resultData.smallHeadImgUrl,
|
|
31
|
+
memberList: (resultData.memberList || []).map((member) => ({
|
|
32
|
+
wxid: member.wxid,
|
|
33
|
+
nickName: member.nickName,
|
|
34
|
+
inviterUserName: member.inviterUserName,
|
|
35
|
+
memberFlag: member.memberFlag,
|
|
36
|
+
displayName: member.displayName,
|
|
37
|
+
bigHeadImgUrl: member.bigHeadImgUrl,
|
|
38
|
+
smallHeadImgUrl: member.smallHeadImgUrl
|
|
39
|
+
}))
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
GetChatroomMemberList(request) {
|
|
45
|
+
return this.apiClient.postRequest({
|
|
46
|
+
url: "/gewe/v2/api/group/getChatroomMemberList",
|
|
47
|
+
data: {
|
|
48
|
+
appId: request.deviceId,
|
|
49
|
+
chatroomId: request.chatroomId
|
|
50
|
+
},
|
|
51
|
+
handelModel: (resultData) => {
|
|
52
|
+
return {
|
|
53
|
+
memberList: (resultData.memberList || []).map((member) => ({
|
|
54
|
+
wxid: member.wxid,
|
|
55
|
+
nickName: member.nickName,
|
|
56
|
+
inviterUserName: member.inviterUserName,
|
|
57
|
+
memberFlag: member.memberFlag,
|
|
58
|
+
displayName: member.displayName,
|
|
59
|
+
bigHeadImgUrl: member.bigHeadImgUrl,
|
|
60
|
+
smallHeadImgUrl: member.smallHeadImgUrl
|
|
61
|
+
})),
|
|
62
|
+
chatroomOwner: resultData.chatroomOwner,
|
|
63
|
+
adminWxid: resultData.adminWxid || []
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
GetChatroomQRCode(request) {
|
|
69
|
+
return this.apiClient.postRequest({
|
|
70
|
+
url: "/gewe/v2/api/group/getChatroomQrCode",
|
|
71
|
+
data: {
|
|
72
|
+
appId: request.deviceId,
|
|
73
|
+
chatroomId: request.chatroomId
|
|
74
|
+
},
|
|
75
|
+
handelModel: (resultData) => {
|
|
76
|
+
return {
|
|
77
|
+
base64: resultData.qrBase64,
|
|
78
|
+
description: resultData.qrTips
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
GetChatroomMemberInfo(request) {
|
|
84
|
+
return this.apiClient.postRequest({
|
|
85
|
+
url: "/gewe/v2/api/group/getChatroomMemberDetail",
|
|
86
|
+
data: {
|
|
87
|
+
appId: request.deviceId,
|
|
88
|
+
chatroomId: request.chatroomId,
|
|
89
|
+
memberWxids: Array.isArray(request.toWxid) ? request.toWxid : (request.toWxid ? [request.toWxid] : [])
|
|
90
|
+
},
|
|
91
|
+
handelModel: (resultData) => {
|
|
92
|
+
return {
|
|
93
|
+
memberList: (resultData || []).map((member) => ({
|
|
94
|
+
userName: member.userName,
|
|
95
|
+
nickName: member.nickName,
|
|
96
|
+
pyInitial: member.pyInitial,
|
|
97
|
+
quanPin: member.quanPin,
|
|
98
|
+
sex: member.sex,
|
|
99
|
+
remark: member.remark,
|
|
100
|
+
remarkPyInitial: member.remarkPyInitial,
|
|
101
|
+
remarkQuanPin: member.remarkQuanPin,
|
|
102
|
+
chatRoomNotify: member.chatRoomNotify,
|
|
103
|
+
signature: member.signature,
|
|
104
|
+
alias: member.alias,
|
|
105
|
+
snsBgImg: member.snsBgImg,
|
|
106
|
+
bigHeadImgUrl: member.bigHeadImgUrl,
|
|
107
|
+
smallHeadImgUrl: member.smallHeadImgUrl,
|
|
108
|
+
description: member.description,
|
|
109
|
+
cardImgUrl: member.cardImgUrl,
|
|
110
|
+
labelList: member.labelList,
|
|
111
|
+
country: member.country,
|
|
112
|
+
province: member.province,
|
|
113
|
+
city: member.city,
|
|
114
|
+
phoneNumList: member.phoneNumList,
|
|
115
|
+
friendUserName: member.friendUserName,
|
|
116
|
+
inviterUserName: member.inviterUserName,
|
|
117
|
+
memberFlag: member.memberFlag
|
|
118
|
+
}))
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.Gewe_ChatRoom = Gewe_ChatRoom;
|
|
125
|
+
//# sourceMappingURL=gewe_ChatRoom.js.map
|
|
@@ -0,0 +1 @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AE,MAAM,CAAC,eAAe;wBACvC,WAAW,EAAE,MAAM,CAAC,WAAW;wBAC/B,UAAU,EAAE,MAAM,CAAC,UAAU;wBAC7B,SAAS,EAAE,MAAM,CAAC,SAAS;wBAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;wBACvB,QAAQ,EAAE,MAAM,CAAC,QAAQ;wBACzB,IAAI,EAAE,MAAM,CAAC,IAAI;wBACjB,YAAY,EAAE,MAAM,CAAC,YAAY;wBACjC,cAAc,EAAE,MAAM,CAAC,cAAc;wBACrC,eAAe,EAAE,MAAM,CAAC,eAAe;wBACvC,UAAU,EAAE,MAAM,CAAC,UAAU;qBACP,CAAA,CAAC;iBACK,CAAC;YACzC,CAAC;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AA9HD,sCA8HC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WeChatFriendBase } from "../../../weChatBase/interface/weChatFriendBase";
|
|
2
|
+
import { friendPassVerifyRequest } from "../../../weChatBase/request/friend/friendPassVerifyRequest";
|
|
3
|
+
import { getContactListRequest, getContactListResponse } from "../../../weChatBase/request/friend/getContactListRequest";
|
|
4
|
+
import { wxGetContractDetailRequest, wxGetContractDetailResponse } from "../../../weChatBase/request/friend/wxGetContractDetailRequest";
|
|
5
|
+
import { wxSearchContactRequest, wxSearchContactResponse } from "../../../weChatBase/request/friend/wxSearchContactRequest";
|
|
6
|
+
import { wxUploadContactRequest } from "../../../weChatBase/request/friend/wxUploadContactRequest";
|
|
7
|
+
import { WeChatResult } from "../../../weChatBase/weChatResult";
|
|
8
|
+
import { GeweBaseApi } from "../apiCore/geweBaseApi";
|
|
9
|
+
export declare class Gewe_Friend extends WeChatFriendBase {
|
|
10
|
+
apiClient: GeweBaseApi;
|
|
11
|
+
PassVerify(request: friendPassVerifyRequest): Promise<WeChatResult<boolean>>;
|
|
12
|
+
GetContractDetail(request: wxGetContractDetailRequest): Promise<WeChatResult<wxGetContractDetailResponse>>;
|
|
13
|
+
GetContractList(request: getContactListRequest): Promise<WeChatResult<getContactListResponse>>;
|
|
14
|
+
SearchContact(request: wxSearchContactRequest): Promise<WeChatResult<wxSearchContactResponse>>;
|
|
15
|
+
UploadContact(request: wxUploadContactRequest): Promise<WeChatResult<boolean>>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=gewe_Friend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gewe_Friend.d.ts","sourceRoot":"","sources":["../../../../src/geweChat/gewe/clientApi/gewe_Friend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AACrG,OAAO,EAAmB,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAC1I,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,+DAA+D,CAAC;AACxI,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AAC5H,OAAO,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,qBAAa,WAAY,SAAQ,gBAAgB;IAC7C,SAAS,cAA4C;IAErD,UAAU,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAG5E,iBAAiB,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC;IAsC1G,eAAe,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC;IAmB9F,aAAa,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,YAAY,CAAC,uBAAuB,CAAC,CAAC;IA8B9F,aAAa,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;CAejF"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Gewe_Friend = void 0;
|
|
4
|
+
const weChatFriendBase_1 = require("../../../weChatBase/interface/weChatFriendBase");
|
|
5
|
+
const geweBaseApi_1 = require("../apiCore/geweBaseApi");
|
|
6
|
+
class Gewe_Friend extends weChatFriendBase_1.WeChatFriendBase {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.apiClient = new geweBaseApi_1.GeweBaseApi(this.apiUrl, this.token);
|
|
10
|
+
}
|
|
11
|
+
PassVerify(request) {
|
|
12
|
+
throw new Error("Method not implemented.");
|
|
13
|
+
}
|
|
14
|
+
GetContractDetail(request) {
|
|
15
|
+
return this.apiClient.postRequest({
|
|
16
|
+
url: "/gewe/v2/api/contacts/getDetailInfo",
|
|
17
|
+
data: {
|
|
18
|
+
appId: request.deviceId,
|
|
19
|
+
wxids: request.wxids
|
|
20
|
+
},
|
|
21
|
+
handelModel: (resultData) => {
|
|
22
|
+
return {
|
|
23
|
+
contactList: (resultData || []).map((contact) => ({
|
|
24
|
+
userName: contact.userName,
|
|
25
|
+
nickName: contact.nickName,
|
|
26
|
+
pyinitial: contact.pyInitial || "",
|
|
27
|
+
quanPin: contact.quanPin || "",
|
|
28
|
+
sex: contact.sex,
|
|
29
|
+
remark: contact.remark || "",
|
|
30
|
+
remarkPyInitial: contact.remarkPyInitial || "",
|
|
31
|
+
remarkQuanPin: contact.remarkQuanPin || "",
|
|
32
|
+
contactType: 0,
|
|
33
|
+
province: contact.province || "",
|
|
34
|
+
city: contact.city || "",
|
|
35
|
+
signature: contact.signature || "",
|
|
36
|
+
alias: contact.alias || "",
|
|
37
|
+
snsBgImg: contact.snsBgImg || "",
|
|
38
|
+
country: contact.country || "",
|
|
39
|
+
bigHeadImgUrl: contact.bigHeadImgUrl || "",
|
|
40
|
+
smallHeadImgUrl: contact.smallHeadImgUrl || "",
|
|
41
|
+
description: contact.description || "",
|
|
42
|
+
cardImgUrl: contact.cardImgUrl || "",
|
|
43
|
+
labelList: contact.labelList || "",
|
|
44
|
+
phoneNumList: contact.phoneNumList || ""
|
|
45
|
+
}))
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
GetContractList(request) {
|
|
51
|
+
return this.apiClient.postRequest({
|
|
52
|
+
url: "/gewe/v2/api/contacts/fetchContactsList",
|
|
53
|
+
data: {
|
|
54
|
+
appId: request.deviceId
|
|
55
|
+
},
|
|
56
|
+
handelModel: (resultData) => {
|
|
57
|
+
return {
|
|
58
|
+
contactList: {
|
|
59
|
+
friends: resultData.friends || [],
|
|
60
|
+
chatrooms: resultData.chatrooms || [],
|
|
61
|
+
ghs: resultData.ghs || []
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
SearchContact(request) {
|
|
68
|
+
return this.apiClient.postRequest({
|
|
69
|
+
url: "/gewe/v2/api/contacts/search",
|
|
70
|
+
data: {
|
|
71
|
+
appId: request.deviceId,
|
|
72
|
+
contactsInfo: request.userName
|
|
73
|
+
},
|
|
74
|
+
handelModel: (resultData) => {
|
|
75
|
+
if (!resultData) {
|
|
76
|
+
return { userInfo: undefined };
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
userInfo: {
|
|
80
|
+
nick_name: resultData.nickName,
|
|
81
|
+
user_nameV3: resultData.v3,
|
|
82
|
+
antispam_ticketV4: resultData.v4,
|
|
83
|
+
sex: resultData.sex,
|
|
84
|
+
province: resultData.province || "",
|
|
85
|
+
city: resultData.city || "",
|
|
86
|
+
country: resultData.country || "",
|
|
87
|
+
big_head_img_url: resultData.bigHeadImgUrl,
|
|
88
|
+
small_head_img_url: resultData.smallHeadImgUrl,
|
|
89
|
+
match_type: 0
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
UploadContact(request) {
|
|
96
|
+
return this.apiClient.postRequest({
|
|
97
|
+
url: "/gewe/v2/api/contacts/uploadPhoneAddressList",
|
|
98
|
+
data: {
|
|
99
|
+
appId: request.deviceId,
|
|
100
|
+
phones: request.mobileList,
|
|
101
|
+
opType: request.opType
|
|
102
|
+
},
|
|
103
|
+
handelModel: (resultData) => {
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.Gewe_Friend = Gewe_Friend;
|
|
110
|
+
//# sourceMappingURL=gewe_Friend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gewe_Friend.js","sourceRoot":"","sources":["../../../../src/geweChat/gewe/clientApi/gewe_Friend.ts"],"names":[],"mappings":";;;AAAA,qFAAkF;AAOlF,wDAAqD;AAGrD,MAAa,WAAY,SAAQ,mCAAgB;IAAjD;;QACI,cAAS,GAAG,IAAI,yBAAW,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IA2GzD,CAAC;IAzGG,UAAU,CAAC,OAAgC;QACvC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IACD,iBAAiB,CAAC,OAAmC;QACjD,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAC7B;YACI,GAAG,EAAE,qCAAqC;YAC1C,IAAI,EAAE;gBACF,KAAK,EAAE,OAAO,CAAC,QAAQ;gBACvB,KAAK,EAAE,OAAO,CAAC,KAAK;aACvB;YACD,WAAW,EAAE,CAAC,UAAe,EAAE,EAAE;gBAC7B,OAAO;oBACH,WAAW,EAAE,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAA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B;YACI,GAAG,EAAE,8CAA8C;YACnD,IAAI,EAAE;gBACF,KAAK,EAAE,OAAO,CAAC,QAAQ;gBACvB,MAAM,EAAE,OAAO,CAAC,UAAU;gBAC1B,MAAM,EAAE,OAAO,CAAC,MAAM;aACzB;YACD,WAAW,EAAE,CAAC,UAAe,EAAE,EAAE;gBAC7B,OAAO,IAAI,CAAC;YAChB,CAAC;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AA5GD,kCA4GC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { WeChatLoginBase } from "../../../weChatBase/interface/weChatLoginBase";
|
|
2
|
+
import { wxAutoHeartBeatRequest } from "../../../weChatBase/request/login/wxAutoHeartBeatRequest";
|
|
3
|
+
import { wxAwakenRequest, wxAwakenResponse } from "../../../weChatBase/request/login/wxAwakenRequest";
|
|
4
|
+
import { wxGetLoginQrCodeRequest, wxGetLoginQrCodeResponse } from "../../../weChatBase/request/login/wxGetLoginQrCodeRequest";
|
|
5
|
+
import { wxGetLoginQrStatusRequest, wxGetLoginQrStatusResponse } from "../../../weChatBase/request/login/wxGetLoginQrStatus";
|
|
6
|
+
import { wxGetOnlineStatusRequest } from "../../../weChatBase/request/login/wxGetOnlineStatusRequest";
|
|
7
|
+
import { wxHeartBeatRequest } from "../../../weChatBase/request/login/wxHeartBeatRequest";
|
|
8
|
+
import { wxLogOutRequest } from "../../../weChatBase/request/login/wxLogOutRequest";
|
|
9
|
+
import { wxTwiceAutoAuthRequest } from "../../../weChatBase/request/login/wxTwiceAutoAuthRequest";
|
|
10
|
+
import { wxSetWebhookRequest, wxSetWebhookResponse } from "../../../weChatBase/request/tools/wxSetWebhookRequest";
|
|
11
|
+
import { WeChatResult } from "../../../weChatBase/weChatResult";
|
|
12
|
+
import { GeweBaseApi } from "../apiCore/geweBaseApi";
|
|
13
|
+
import { wxDialogLoginRequest, wxDialogLoginResponse } from '../../../weChatBase/request/login/wxDialogLoginRequest';
|
|
14
|
+
export declare class Gewe_Login extends WeChatLoginBase {
|
|
15
|
+
dialogLogin(request: wxDialogLoginRequest): Promise<WeChatResult<wxDialogLoginResponse>>;
|
|
16
|
+
apiClient: GeweBaseApi;
|
|
17
|
+
getLoginQrCode(request: wxGetLoginQrCodeRequest): Promise<WeChatResult<wxGetLoginQrCodeResponse>>;
|
|
18
|
+
getLoginQrStatus(request: wxGetLoginQrStatusRequest): Promise<WeChatResult<wxGetLoginQrStatusResponse>>;
|
|
19
|
+
logout(request: wxLogOutRequest): Promise<WeChatResult<boolean>>;
|
|
20
|
+
HeartBeat(request: wxHeartBeatRequest): Promise<WeChatResult<boolean>>;
|
|
21
|
+
AutoHeartBeat(request: wxAutoHeartBeatRequest): Promise<WeChatResult<boolean>>;
|
|
22
|
+
Awaken(request: wxAwakenRequest): Promise<WeChatResult<wxAwakenResponse>>;
|
|
23
|
+
TwiceAutoAuth(request: wxTwiceAutoAuthRequest): Promise<WeChatResult<boolean>>;
|
|
24
|
+
GetOnlineStatus(request: wxGetOnlineStatusRequest): Promise<WeChatResult<boolean>>;
|
|
25
|
+
SetWebhook(request: wxSetWebhookRequest): Promise<WeChatResult<wxSetWebhookResponse>>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=gewe_Login.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gewe_Login.d.ts","sourceRoot":"","sources":["../../../../src/geweChat/gewe/clientApi/gewe_Login.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AACtG,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,2DAA2D,CAAC;AAC9H,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,sDAAsD,CAAC;AAC7H,OAAO,EAAE,wBAAwB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AO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAalF,UAAU,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAgBxF"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Gewe_Login = void 0;
|
|
4
|
+
const weChatLoginBase_1 = require("../../../weChatBase/interface/weChatLoginBase");
|
|
5
|
+
const geweBaseApi_1 = require("../apiCore/geweBaseApi");
|
|
6
|
+
class Gewe_Login extends weChatLoginBase_1.WeChatLoginBase {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.apiClient = new geweBaseApi_1.GeweBaseApi(this.apiUrl, this.token);
|
|
10
|
+
}
|
|
11
|
+
async dialogLogin(request) {
|
|
12
|
+
return this.apiClient.postRequest({
|
|
13
|
+
url: "/gewe/v2/api/login/dialogLogin",
|
|
14
|
+
data: {
|
|
15
|
+
appId: request.deviceId,
|
|
16
|
+
proxyIp: request.proxyIp,
|
|
17
|
+
regionId: request.regionId,
|
|
18
|
+
aid: request.aid
|
|
19
|
+
},
|
|
20
|
+
handelModel: (resultData) => {
|
|
21
|
+
return resultData;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
async getLoginQrCode(request) {
|
|
26
|
+
return this.apiClient.postRequest({
|
|
27
|
+
url: "/gewe/v2/api/login/getLoginQrCode",
|
|
28
|
+
data: {
|
|
29
|
+
appId: request.deviceId,
|
|
30
|
+
proxyIp: request.proxy,
|
|
31
|
+
regionId: request.regionId,
|
|
32
|
+
type: request.type,
|
|
33
|
+
aid: request.aid,
|
|
34
|
+
ttuid: request.ttuid
|
|
35
|
+
},
|
|
36
|
+
handelModel: (resultData) => {
|
|
37
|
+
return {
|
|
38
|
+
deviceId: resultData.appId,
|
|
39
|
+
uuid: resultData.uuid,
|
|
40
|
+
qrUrl: resultData.qrData,
|
|
41
|
+
qrImgBase64: resultData.qrImgBase64
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
getLoginQrStatus(request) {
|
|
47
|
+
return this.apiClient.postRequest({
|
|
48
|
+
url: "/gewe/v2/api/login/checkLogin",
|
|
49
|
+
data: {
|
|
50
|
+
"appId": request.deviceId,
|
|
51
|
+
"proxyIp": request.proxyIp,
|
|
52
|
+
"uuid": request.uuid,
|
|
53
|
+
"captchCode": request.captchCode,
|
|
54
|
+
"autoSliding": request.autoSliding
|
|
55
|
+
},
|
|
56
|
+
handelModel: (resultData) => {
|
|
57
|
+
return resultData;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
logout(request) {
|
|
62
|
+
return this.apiClient.postRequest({
|
|
63
|
+
url: "/gewe/v2/api/login/logout",
|
|
64
|
+
data: {
|
|
65
|
+
"appId": request.deviceId,
|
|
66
|
+
"proxyIp": request.proxyIp,
|
|
67
|
+
"regionId": request.regionId
|
|
68
|
+
},
|
|
69
|
+
handelModel: (resultData) => {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
HeartBeat(request) {
|
|
75
|
+
throw new Error("Method not implemented.");
|
|
76
|
+
}
|
|
77
|
+
AutoHeartBeat(request) {
|
|
78
|
+
throw new Error("Method not implemented.");
|
|
79
|
+
}
|
|
80
|
+
Awaken(request) {
|
|
81
|
+
return this.apiClient.postRequest({
|
|
82
|
+
url: "/gewe/v2/api/login/reconnection",
|
|
83
|
+
data: {
|
|
84
|
+
"appId": request.deviceId,
|
|
85
|
+
},
|
|
86
|
+
handelModel: (resultData) => {
|
|
87
|
+
return { uuid: '' };
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
TwiceAutoAuth(request) {
|
|
92
|
+
throw new Error("Method not implemented.");
|
|
93
|
+
}
|
|
94
|
+
GetOnlineStatus(request) {
|
|
95
|
+
return this.apiClient.postRequest({
|
|
96
|
+
url: "/gewe/v2/api/login/checkOnline",
|
|
97
|
+
data: {
|
|
98
|
+
"appId": request.deviceId,
|
|
99
|
+
},
|
|
100
|
+
handelModel: (resultData) => {
|
|
101
|
+
return resultData;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
SetWebhook(request) {
|
|
106
|
+
return this.apiClient.postRequest({
|
|
107
|
+
url: "/gewe/v2/api/login/setCallback",
|
|
108
|
+
data: {
|
|
109
|
+
"token": this.token,
|
|
110
|
+
"callbackUrl": request.url
|
|
111
|
+
},
|
|
112
|
+
handelModel: (resultData) => {
|
|
113
|
+
return {};
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.Gewe_Login = Gewe_Login;
|
|
119
|
+
//# sourceMappingURL=gewe_Login.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gewe_Login.js","sourceRoot":"","sources":["../../../../src/geweChat/gewe/clientApi/gewe_Login.ts"],"names":[],"mappings":";;;AACA,mFAAgF;AAWhF,wDAAqD;AAGrD,MAAa,UAAW,SAAQ,iCAAe;IAA/C;;QAkBI,cAAS,GAAG,IAAI,yBAAW,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IA8GzD,CAAC;IA/HE,KAAK,CAAC,WAAW,CAAC,OAA6B;QAC1C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAC7B;YACI,GAAG,EAAE,gCAAgC;YACrC,IAAI,EAAE;gBACF,KAAK,EAAE,OAAO,CAAC,QAAQ;gBACvB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,GAAG,EAAE,OAAO,CAAC,GAAG;aACnB;YACD,WAAW,EAAE,CAAC,UAAe,EAAE,EAAE;gBAC7B,OAA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;aAC9B;YACD,WAAW,EAAE,CAAC,UAAe,EAAE,EAAE;gBAC7B,OAAO,EAAE,CAAA;YACb,CAAC;SACJ,CACJ,CAAC;IACN,CAAC;CAGJ;AAhID,gCAgIC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WeChatToolsBase } from "../../../weChatBase/interface/weChatToolsBase";
|
|
2
|
+
import { wxDownloadImgRequest, wxDownloadImgResponse } from "../../../weChatBase/request/tools/wxDownloadImgRequest";
|
|
3
|
+
import { wxEmojiDownloadRequest, wxEmojiDownloadResponse } from "../../../weChatBase/request/tools/wxEmojiDownloadRequest";
|
|
4
|
+
import { wxUploadFileRequest, wxUploadFileResponse } from "../../../weChatBase/request/tools/wxUploadFileRequest";
|
|
5
|
+
import { WeChatResult } from "../../../weChatBase/weChatResult";
|
|
6
|
+
import { GeweBaseApi } from "../apiCore/geweBaseApi";
|
|
7
|
+
export declare class Gewe_Tools extends WeChatToolsBase {
|
|
8
|
+
apiClient: GeweBaseApi;
|
|
9
|
+
DownloadMsgImg(request: wxDownloadImgRequest): Promise<WeChatResult<wxDownloadImgResponse>>;
|
|
10
|
+
UploadFile(request: wxUploadFileRequest): Promise<WeChatResult<wxUploadFileResponse>>;
|
|
11
|
+
EmojiDownload(request: wxEmojiDownloadRequest): Promise<WeChatResult<wxEmojiDownloadResponse>>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=gewe_Tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gewe_Tools.d.ts","sourceRoot":"","sources":["../../../../src/geweChat/gewe/clientApi/gewe_Tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AACrH,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,0DAA0D,CAAC;AAC3H,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AAClH,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,qBAAa,UAAW,SAAQ,eAAe;IAC3C,SAAS,cAA4C;IAErD,cAAc,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;IAiB3F,UAAU,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;IAGrF,aAAa,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,YAAY,CAAC,uBAAuB,CAAC,CAAC;CAiBjG"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Gewe_Tools = void 0;
|
|
4
|
+
const weChatToolsBase_1 = require("../../../weChatBase/interface/weChatToolsBase");
|
|
5
|
+
const geweBaseApi_1 = require("../apiCore/geweBaseApi");
|
|
6
|
+
class Gewe_Tools extends weChatToolsBase_1.WeChatToolsBase {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.apiClient = new geweBaseApi_1.GeweBaseApi(this.apiUrl, this.token);
|
|
10
|
+
}
|
|
11
|
+
DownloadMsgImg(request) {
|
|
12
|
+
return this.apiClient.postRequest({
|
|
13
|
+
url: "/gewe/v2/api/message/downloadImage",
|
|
14
|
+
data: {
|
|
15
|
+
appId: request.deviceId,
|
|
16
|
+
type: request.type,
|
|
17
|
+
xml: request.xml
|
|
18
|
+
},
|
|
19
|
+
handelModel: (resultData) => {
|
|
20
|
+
return {
|
|
21
|
+
fileUrl: resultData.fileUrl
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
UploadFile(request) {
|
|
27
|
+
throw new Error("Method not implemented.");
|
|
28
|
+
}
|
|
29
|
+
EmojiDownload(request) {
|
|
30
|
+
return this.apiClient.postRequest({
|
|
31
|
+
url: "/gewe/v2/api/message/downloadEmojiMd5",
|
|
32
|
+
data: {
|
|
33
|
+
appId: request.deviceId,
|
|
34
|
+
emojiMd5: request.md5
|
|
35
|
+
},
|
|
36
|
+
handelModel: (resultData) => {
|
|
37
|
+
return {
|
|
38
|
+
url: resultData.url
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.Gewe_Tools = Gewe_Tools;
|
|
45
|
+
//# sourceMappingURL=gewe_Tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gewe_Tools.js","sourceRoot":"","sources":["../../../../src/geweChat/gewe/clientApi/gewe_Tools.ts"],"names":[],"mappings":";;;AAAA,mFAAgF;AAKhF,wDAAqD;AAErD,MAAa,UAAW,SAAQ,iCAAe;IAA/C;;QACI,cAAS,GAAG,IAAI,yBAAW,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IAuCzD,CAAC;IArCG,cAAc,CAAC,OAA6B;QACxC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAC7B;YACI,GAAG,EAAE,oCAAoC;YACzC,IAAI,EAAE;gBACF,KAAK,EAAE,OAAO,CAAC,QAAQ;gBACvB,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,GAAG,EAAE,OAAO,CAAC,GAAG;aACnB;YACD,WAAW,EAAE,CAAC,UAAe,EAAE,EAAE;gBAC7B,OAAO;oBACH,OAAO,EAAE,UAAU,CAAC,OAAO;iBACL,CAAC;YAC/B,CAAC;SACJ,CACJ,CAAC;IACN,CAAC;IACD,UAAU,CAAC,OAA4B;QACnC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IACD,aAAa,CAAC,OAA+B;QACzC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAC7B;YACI,GAAG,EAAE,uCAAuC;YAC5C,IAAI,EAAE;gBACF,KAAK,EAAE,OAAO,CAAC,QAAQ;gBACvB,QAAQ,EAAE,OAAO,CAAC,GAAG;aACxB;YACD,WAAW,EAAE,CAAC,UAAe,EAAE,EAAE;gBAC7B,OAAO;oBACH,GAAG,EAAE,UAAU,CAAC,GAAG;iBACK,CAAC;YACjC,CAAC;SACJ,CACJ,CAAC;IACN,CAAC;CAEJ;AAxCD,gCAwCC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { wechatApi, eventBus } from './wechatApi';
|
|
2
|
+
export { ProtocolType } from './protocolTypes';
|
|
3
|
+
export type { ProtocolTypeValue } from './protocolTypes';
|
|
4
|
+
export type { WeChatApiBase } from './weChatBase/interface/weChatApiBase';
|
|
5
|
+
export type { WeChatLoginBase } from './weChatBase/interface/weChatLoginBase';
|
|
6
|
+
export type { WeChatMessageBase } from './weChatBase/interface/weChatMessageBase';
|
|
7
|
+
export type { WeChatFriendBase } from './weChatBase/interface/weChatFriendBase';
|
|
8
|
+
export type { WeChatChatRoomBase } from './weChatBase/interface/weChatChatRoomBase';
|
|
9
|
+
export type { WeChatToolsBase } from './weChatBase/interface/weChatToolsBase';
|
|
10
|
+
export type { WeChatResult } from './weChatBase/weChatResult';
|
|
11
|
+
export type { ChatMemberInfo } from './weChatBase/entity/chatMemberInfo';
|
|
12
|
+
export type { SimpleSession } from './weChatBase/entity/simpleSession';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAC1E,YAAY,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAC9E,YAAY,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAClF,YAAY,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAChF,YAAY,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AACpF,YAAY,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAC9E,YAAY,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,YAAY,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,YAAY,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProtocolType = exports.eventBus = exports.wechatApi = void 0;
|
|
4
|
+
// 导出主API工厂函数和事件总线
|
|
5
|
+
var wechatApi_1 = require("./wechatApi");
|
|
6
|
+
Object.defineProperty(exports, "wechatApi", { enumerable: true, get: function () { return wechatApi_1.wechatApi; } });
|
|
7
|
+
Object.defineProperty(exports, "eventBus", { enumerable: true, get: function () { return wechatApi_1.eventBus; } });
|
|
8
|
+
// 导出协议类型常量
|
|
9
|
+
var protocolTypes_1 = require("./protocolTypes");
|
|
10
|
+
Object.defineProperty(exports, "ProtocolType", { enumerable: true, get: function () { return protocolTypes_1.ProtocolType; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AAClB,yCAAkD;AAAzC,sGAAA,SAAS,OAAA;AAAE,qGAAA,QAAQ,OAAA;AAE5B,WAAW;AACX,iDAA+C;AAAtC,6GAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 微信协议类型常量
|
|
3
|
+
*/
|
|
4
|
+
export declare const ProtocolType: {
|
|
5
|
+
/** GeWe 协议 */
|
|
6
|
+
readonly WX_GeWe: "WX_GeWe";
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* 协议类型联合类型
|
|
10
|
+
*/
|
|
11
|
+
export type ProtocolTypeValue = typeof ProtocolType[keyof typeof ProtocolType];
|
|
12
|
+
//# sourceMappingURL=protocolTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocolTypes.d.ts","sourceRoot":"","sources":["../src/protocolTypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,YAAY;IACvB,cAAc;;CAEN,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocolTypes.js","sourceRoot":"","sources":["../src/protocolTypes.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,cAAc;IACd,OAAO,EAAE,SAAS;CACV,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gameCore.d.ts","sourceRoot":"","sources":["../../src/utils/gameCore.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,KAAK;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACvB;AAGD,eAAO,MAAM,UAAU,GAAI,QAAQ,KAAK,EAAE,UAsBzC,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// 游戏核心类
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.commonDraw = void 0;
|
|
5
|
+
//通用抽奖方法
|
|
6
|
+
const commonDraw = (prizes) => {
|
|
7
|
+
// 计算总概率
|
|
8
|
+
const totalProbability = prizes.reduce((sum, prize) => sum + prize.probability, 0);
|
|
9
|
+
if (totalProbability <= 0) {
|
|
10
|
+
throw new Error('总概率必须大于0');
|
|
11
|
+
}
|
|
12
|
+
// 生成随机数
|
|
13
|
+
const random = Math.random();
|
|
14
|
+
// 根据随机数确定中奖结果
|
|
15
|
+
let cumulativeProbability = 0;
|
|
16
|
+
for (const prize of prizes) {
|
|
17
|
+
cumulativeProbability += prize.probability;
|
|
18
|
+
if (random < cumulativeProbability) {
|
|
19
|
+
return prize;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
// 如果没有中奖,返回null
|
|
23
|
+
return null;
|
|
24
|
+
};
|
|
25
|
+
exports.commonDraw = commonDraw;
|
|
26
|
+
//# sourceMappingURL=gameCore.js.map
|