feat: GetRecentRecord 추가

- 메인페이지 최신 로그
This commit is contained in:
2022-08-16 23:57:47 +09:00
parent 970b702a2b
commit 4870e2fa30
3 changed files with 143 additions and 0 deletions
+5
View File
@@ -26,6 +26,7 @@ import type {
GetCurrentHistoryResponse,
GetDiplomacyResponse,
GetHistoryResponse,
GetRecentRecordResponse,
} from "./defs/API/Global";
import type { CachedMapResult, GeneralListResponse, ItemTypeKey, MapResult } from "./defs";
import type { VoteDetailResult, VoteListResult } from "./defs/API/Vote";
@@ -144,6 +145,10 @@ const apiRealPath = {
GetCachedMap: GET as APICallT<undefined, CachedMapResult>,
GetDiplomacy: GET as APICallT<undefined, GetDiplomacyResponse>,
ExecuteEngine: POST as APICallT<undefined, ValidResponse & { updated: boolean }>,
GetRecentRecord: GET as APICallT<{
lastGeneralRecordID: number;
lastWorldHistoryID: number;
} | undefined, GetRecentRecordResponse>,
},
InheritAction: {
BuyHiddenBuff: PUT as APICallT<{