mirror of https://github.com/hykilpikonna/AquaDX
[+] Implement GetUserRecommendSelectMusic
parent
5dd06ba501
commit
52ef582be6
|
@ -172,14 +172,6 @@ fun Maimai2ServletController.initApis() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Empty List Handlers
|
// Empty List Handlers
|
||||||
"GetUserRecommendRateMusic" { mapOf(
|
|
||||||
"userId" to uid,
|
|
||||||
"userRecommendRateMusicIdList" to empty
|
|
||||||
) }
|
|
||||||
"GetUserRecommendSelectMusic" { mapOf(
|
|
||||||
"userId" to uid,
|
|
||||||
"userRecommendSelectionMusicIdList" to empty
|
|
||||||
) }
|
|
||||||
"GetUserRegion".unpaged { empty }
|
"GetUserRegion".unpaged { empty }
|
||||||
"GetUserGhost".unpaged { empty }
|
"GetUserGhost".unpaged { empty }
|
||||||
"GetUserFriendBonus" { mapOf("userId" to uid, "returnCode" to 0, "getMiles" to 0) }
|
"GetUserFriendBonus" { mapOf("userId" to uid, "returnCode" to 0, "getMiles" to 0) }
|
||||||
|
@ -270,4 +262,15 @@ fun Maimai2ServletController.initApis() {
|
||||||
"scoreData" to ""
|
"scoreData" to ""
|
||||||
)
|
)
|
||||||
) }
|
) }
|
||||||
|
|
||||||
|
// Recommendation
|
||||||
|
"GetUserRecommendRateMusic" { mapOf(
|
||||||
|
"userId" to uid,
|
||||||
|
"userRecommendRateMusicIdList" to empty // TODO
|
||||||
|
) }
|
||||||
|
|
||||||
|
"GetUserRecommendSelectMusic" { mapOf(
|
||||||
|
"userId" to uid,
|
||||||
|
"userRecommendSelectionMusicIdList" to (net.recommendedMusic[uid] ?: empty)
|
||||||
|
) }
|
||||||
}
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
package icu.samnyan.aqua.sega.maimai2
|
package icu.samnyan.aqua.sega.maimai2
|
||||||
|
|
||||||
import ext.*
|
import ext.*
|
||||||
|
import icu.samnyan.aqua.net.games.mai2.Maimai2
|
||||||
import icu.samnyan.aqua.net.utils.ApiException
|
import icu.samnyan.aqua.net.utils.ApiException
|
||||||
import icu.samnyan.aqua.net.utils.simpleDescribe
|
import icu.samnyan.aqua.net.utils.simpleDescribe
|
||||||
import icu.samnyan.aqua.sega.general.*
|
import icu.samnyan.aqua.sega.general.*
|
||||||
|
@ -32,7 +33,8 @@ class Maimai2ServletController(
|
||||||
val getUserFavoriteItem: GetUserFavoriteItemHandler,
|
val getUserFavoriteItem: GetUserFavoriteItemHandler,
|
||||||
val getUserCharacter: GetUserCharacterHandler,
|
val getUserCharacter: GetUserCharacterHandler,
|
||||||
val getGameRanking: GetGameRankingHandler,
|
val getGameRanking: GetGameRankingHandler,
|
||||||
val db: Mai2Repos
|
val db: Mai2Repos,
|
||||||
|
val net: Maimai2,
|
||||||
): MeowApi(serialize = { _, resp -> if (resp is String) resp else resp.toJson() }) {
|
): MeowApi(serialize = { _, resp -> if (resp is String) resp else resp.toJson() }) {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
Loading…
Reference in New Issue