Element paging problem

clipboard.png

clipboard.png

I now request that the background data is 10 pages per page, and then show how many pages there are according to the length of list, but each time I request, that is, 10 pieces of current data, only one page is displayed here, there is no second or third page, and I have N pieces of data here. Find the solution

Mar.06,2021

your API only returns 10 pieces of data of the current page, not the length of the total data.


General request paging will send {current pages: 1, number of pages per page: 20}
result will get a standard like {total: 48, items: []}
.


it is certain that there is no correct total, returned in api. Postman is recommended to take a good look at the value returned by the API. Use whichever pair

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a6ca-2c21c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a6ca-2c21c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?