mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-25 20:12:39 +00:00
[-] Remove old code
This commit is contained in:
parent
1e8c0ce99b
commit
30f740a430
@ -14,23 +14,6 @@ class GetUserMusicHandler(
|
||||
) : BaseHandler {
|
||||
override fun handle(request: Map<String, Any>): Any {
|
||||
val userId = (request["userId"] as Number).toLong()
|
||||
// val nextIndexVal = (request["nextIndex"] as Number).toInt()
|
||||
// val maxCount = (request["maxCount"] as Number).toInt()
|
||||
//
|
||||
// val pageNum = nextIndexVal / maxCount
|
||||
//
|
||||
// val dbPage = userMusicDetailRepository.findByUser_Card_ExtId(userId, PageRequest.of(pageNum, maxCount))
|
||||
//
|
||||
// val currentIndex = (maxCount * pageNum + dbPage.numberOfElements).toLong()
|
||||
//
|
||||
// val resultMap = mutableMapOf(
|
||||
// "userId" to userId,
|
||||
// "nextIndex" to if (dbPage.numberOfElements < maxCount) 0 else currentIndex,
|
||||
// "userMusicList" to listOf(mapOf("userMusicDetailList" to dbPage.content))
|
||||
// )
|
||||
//
|
||||
// val json = mapper.write(resultMap)
|
||||
// logger.info("Response: $json")
|
||||
|
||||
val db = repos.userMusicDetail.findByUser_Card_ExtId(userId)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user