feat, refact: 메시지 연락 리스트 수신

This commit is contained in:
2022-12-05 01:10:41 +09:00
parent 864ddf7efe
commit 4f21eab7b1
3 changed files with 53 additions and 2 deletions
+2 -1
View File
@@ -32,7 +32,7 @@ GetRecentRecordResponse,
import type { CachedMapResult, GeneralListResponse, ItemTypeKey, MapResult } from "./defs";
import type { VoteDetailResult, VoteListResult } from "./defs/API/Vote";
import type { ActiveResourceAuctionList, OpenAuctionResponse, UniqueItemAuctionDetail, UniqueItemAuctionList } from "./defs/API/Auction";
import type { MsgResponse, MsgType } from "./defs/API/Message";
import type { MabilboxListResponse, MsgResponse, MsgType } from "./defs/API/Message";
const apiRealPath = {
Auction: {
@@ -172,6 +172,7 @@ const apiRealPath = {
}, InheritLogResponse>
},
Message: {
GetContactList: GET as APICallT<undefined, MabilboxListResponse>,
GetRecentMessage: GET as APICallT<{
sequence?: number;
}, MsgResponse>,
+16 -1
View File
@@ -49,4 +49,19 @@ export type MsgResponse = {
nationID: number;
generalName: string;
sequence: number;
};
};
export type MailboxItem = {
id: number,
mailbox: number,
color: string,
name: string,
nationID: number,
//nation: string,
general: [number, string, number][]
}
export type MabilboxListResponse = {
result: true,
nation: MailboxItem[]
}