@PostMapping("/get_logs")
    @Operation(summary = "Get paginated account logs")
    public DAccountLogsResult getAccountLogs(@RequestBody DAccountLogsRequest deprecatedRequest){
        validatePageId(deprecatedRequest);
        AppSession appSession = validate(deprecatedRequest);
        var request = deprecatedRequest.getRequest();
        var result = accountService.getAccountLogs(appSession.getAccountId(), appSession.getDeviceName(), appSession.getAppCode(), request);
        return DAccountLogsResult.copyFrom(result);
    }
@Test
    public void testValidRequest() {
        DAccountLogsRequest request = new DAccountLogsRequest();
        request.setPageId(1);
        request.setAppSessionId("id");

        AccountLogsResult result = new AccountLogsResult();
        result.setTotalItems(10);
        result.setTotalPages(1);
        List<AccountLog> results = new ArrayList<>();
        result.setResults(results);
        result.setStatus(Status.OK);
        result.setError("error");

        when(accountService.getAccountLogs(eq(1L), any(), any(), any())).thenReturn(result);

        DAccountLogsResult accountLogs = accountLogsController.getAccountLogs(request);

        assertEquals(Status.OK, accountLogs.getStatus());
        assertEquals("error", accountLogs.getError());
        assertEquals(results, accountLogs.getLogs());
    }