[F] Fix maimai2 events

pull/23/head
Azalea 2024-03-23 07:01:00 -04:00
parent cf015be49f
commit 015fa3dc9f
3 changed files with 14 additions and 13 deletions

View File

@ -44,7 +44,7 @@ public class GetGameEventHandler implements BaseHandler {
resultMap.put("gameEventList", gameEventList);
String json = mapper.write(resultMap);
logger.info("Response: " + json);
logger.info("Response: {} events", gameEventList.size());
return json;
}
}

View File

@ -48,9 +48,10 @@ class GetUserRatingHandler(
ur.udemae = repos.userUdemae.findSingleByUser_Card_ExtId(userId)() ?: Mai2UserUdemae()
val resultMap: MutableMap<String, Any> = LinkedHashMap()
resultMap["userId"] = userId
resultMap["userRating"] = ur
val resultMap = mapOf(
"userId" to userId,
"userRating" to ur
)
val json = mapper.write(resultMap)
logger.info("Response: $json")

View File

@ -11,12 +11,12 @@ import java.time.LocalDateTime
@Data @Entity
@Table(name = "maimai2_game_event")
class Mai2GameEvent : BaseEntity() {
private val type = 0
private val startDate: String? = null
private val endDate: String? = null
var type = 0
var startDate: String? = null
var endDate: String? = null
@JsonIgnore
private val enable = false
var enable = false
}
@Data @Entity
@ -33,9 +33,9 @@ class Mai2GameCharge : BaseEntity() {
@Data @Entity
@Table(name = "maimai2_game_selling_card")
class Mai2GameSellingCard : BaseEntity() {
private val cardId = 0L
private val startDate: LocalDateTime? = null
private val endDate: LocalDateTime? = null
private val noticeStartDate: LocalDateTime? = null
private val noticeEndDate: LocalDateTime? = null
var cardId = 0L
var startDate: LocalDateTime? = null
var endDate: LocalDateTime? = null
var noticeStartDate: LocalDateTime? = null
var noticeEndDate: LocalDateTime? = null
}