[F] Fix hibernate enhance compilation

pull/88/head
Azalea 2024-11-20 22:29:45 -05:00
parent 10ebd61519
commit e32a2bbe81
161 changed files with 174 additions and 177 deletions

View File

@ -29,7 +29,7 @@ public class GetClientBookkeepingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long placeId = ((Number) request.get("placeId")).longValue();
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -40,7 +40,7 @@ public class GetGameConnectHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
int type = ((Number) request.get("type")).intValue(); // Allnet enabled or not
long version = ((Number) request.get("version")).longValue(); // Rom version

View File

@ -5,6 +5,7 @@ import icu.samnyan.aqua.sega.general.BaseHandler;
import icu.samnyan.aqua.sega.cardmaker.model.response.GetGameSettingResp;
import icu.samnyan.aqua.sega.cardmaker.model.response.data.GameSetting;
import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@ -31,7 +32,7 @@ public class GetGameSettingHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(@NotNull Map<String, ?> request) throws JsonProcessingException {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("uuuu-MM-dd HH:mm:ss");
LocalDateTime rebootStartTime = LocalDateTime.now().minusHours(3);
@ -60,7 +61,7 @@ public class GetGameSettingHandler implements BaseHandler {
String json = mapper.write(resp);
logger.info("Response: " + json);
logger.info("Response: {}", json);
return json;
}
}

View File

@ -31,7 +31,7 @@ public class GameLoginHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Optional<UserData> userDataOptional = userDataService.getUserByExtId(userId);
userDataOptional.ifPresent(userDataService::updateLoginTime);

View File

@ -25,7 +25,7 @@ public class GameLogoutHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String json = mapper.write(new CodeResp(1));
logger.info("Response: " + json);

View File

@ -31,7 +31,7 @@ public class GetGameChargeHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
List<GameCharge> gameChargeList = gameChargeRepository.findAll();

View File

@ -33,7 +33,7 @@ public class GetGameEventHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String type = (String) request.get("type");
List<GameEvent> gameEventList = gameEventRepository.findByEnable(true);

View File

@ -29,7 +29,7 @@ public class GetGameIdlistHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String type = (String) request.get("type");
List<Object> gameIdlistList = new ArrayList<>();

View File

@ -33,7 +33,7 @@ public class GetGameMessageHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String type = (String) request.get("type");
List<GameMessage> gameMessageList = gameMessageRepository.findAll();

View File

@ -35,7 +35,7 @@ public class GetGameRankingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String type = (String) request.get("type");
Page<GameRanking> rankingPage = userPlaylogRepository.findGameRankingByPlaylog(PageRequest.of(0, 10));

View File

@ -30,7 +30,7 @@ public class GetGameSaleHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String type = (String) request.get("type");
List<GameSale> gameSaleList = new ArrayList<>();

View File

@ -31,7 +31,7 @@ public class GetGameSettingHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
// Fixed reboot time triggers chunithm maintenance lockout, so let's try minime method which sets it dynamically
// Special thanks to skogaby

View File

@ -26,7 +26,7 @@ public class GetTeamCourseRuleHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -24,7 +24,7 @@ public class GetTeamCourseSettingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");

View File

@ -34,7 +34,7 @@ public class GetUserActivityHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
String kind = (String) request.get("kind");

View File

@ -36,7 +36,7 @@ public class GetUserCharacterHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
int nextIndex = Integer.parseInt((String) request.get("nextIndex"));
int maxCount = Integer.parseInt((String) request.get("maxCount"));

View File

@ -33,7 +33,7 @@ public class GetUserChargeHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
List<UserCharge> userChargeList = userChargeService.getByUserId(userId);

View File

@ -35,7 +35,7 @@ public class GetUserCourseHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -33,7 +33,7 @@ public class GetUserDataExHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Optional<UserDataEx> userDataExOptional = userDataExService.getByExtId(userId);

View File

@ -42,7 +42,7 @@ public class GetUserDataHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Optional<UserData> userDataOptional = userDataService.getUserByExtId(userId);

View File

@ -34,7 +34,7 @@ public class GetUserDuelHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
String duelId = (String) request.get("duelId");
String isAllDuel = (String) request.get("isAllDuel");

View File

@ -30,7 +30,7 @@ public class GetUserFavoriteItemHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
String kind = (String) request.get("kind");

View File

@ -31,7 +31,7 @@ public class GetUserFavoriteMusicHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
// TODO:

View File

@ -35,7 +35,7 @@ public class GetUserItemHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Long nextIndexVal = Long.parseLong((String) request.get("nextIndex"));
int maxCount = Integer.parseInt((String) request.get("maxCount"));

View File

@ -25,7 +25,7 @@ public class GetUserLoginBonusHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
// TODO:

View File

@ -34,7 +34,7 @@ public class GetUserMapHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
List<UserMap> userMapList = userMapService.getByUserId(userId);

View File

@ -41,7 +41,7 @@ public class GetUserMusicHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
int currentIndex = Integer.parseInt((String) request.get("nextIndex"));
int maxCount = Integer.parseInt((String) request.get("maxCount"));

View File

@ -34,7 +34,7 @@ public class GetUserOptionExHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Optional<UserGameOptionEx> userGameOptionEx = userGameOptionExService.getByUserId(userId);

View File

@ -34,7 +34,7 @@ public class GetUserOptionHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Optional<UserGameOption> userGameOption = userGameOptionService.getByUserId(userId);

View File

@ -56,7 +56,7 @@ public class GetUserPreviewHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");

View File

@ -40,7 +40,7 @@ public class GetUserRecentRatingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Optional<UserGeneralData> recentOptional = userGeneralDataService.getByUserIdAndKey(userId, "recent_rating_list");

View File

@ -29,7 +29,7 @@ public class GetUserRegionHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
List<Object> userRegionList = new ArrayList<>();

View File

@ -24,7 +24,7 @@ public class GetUserRivalDataHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -24,7 +24,7 @@ public class GetUserRivalMusicHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -27,7 +27,7 @@ public class GetUserTeamHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
String playDate = (String) request.get("playDate");

View File

@ -30,7 +30,7 @@ public class UpsertClientSettingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
var req = mapper.convert(request, ClientSettingRequest.class);
var set = req.getClientSetting();
var serial = (String) request.get(SERIAL_KEY);

View File

@ -69,7 +69,7 @@ public class UpsertUserAllHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
UpsertUserAll upsertUserAll = mapper.convert(request.get("upsertUserAll"), UpsertUserAll.class);

View File

@ -34,7 +34,7 @@ public class UpsertUserChargelogHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
UserData user = userDataService.getUserByExtId(userId).orElseThrow();

View File

@ -29,7 +29,7 @@ public class BeginMatchingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
MatchingMemberInfo matchingMemberInfo = mapper.convert(request.get("matchingMemberInfo"), MatchingMemberInfo.class);
MatchingWaitState matchingWaitState = new MatchingWaitState();

View File

@ -38,7 +38,7 @@ public class CMGetUserCharacterHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = String.valueOf(request.get("userId"));
int nextIndex = ((Number) request.get("nextIndex")).intValue();
int maxCount = ((Number) request.get("maxCount")).intValue();

View File

@ -34,7 +34,7 @@ public class CMGetUserDataHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = String.valueOf(request.get("userId"));
Optional<Chu3UserData> userDataOptional = userDataService.getUserByExtId(userId);

View File

@ -35,7 +35,7 @@ public class CMGetUserItemHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = String.valueOf(request.get("userId"));
Long nextIndexVal = ((Number) request.get("nextIndex")).longValue();
int maxCount = ((Number) request.get("maxCount")).intValue();

View File

@ -34,7 +34,7 @@ public class CMGetUserPreviewHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = String.valueOf(request.get("userId"));
String segaIdAuthKey = String.valueOf(request.get("segaIdAuthKey"));

View File

@ -46,7 +46,7 @@ public class CMUpsertUserGachaHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = String.valueOf(request.get("userId"));
int gachaId = ((Number) request.get("gachaId")).intValue();
int placeId = ((Number) request.get("placeId")).intValue();

View File

@ -33,7 +33,7 @@ public class CMUpsertUserPrintCancelHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = String.valueOf(request.get("userId"));
List<Integer> orderIdList = mapper.convert(request.get("orderIdList"), new TypeReference<List<Integer>>() {});

View File

@ -38,7 +38,7 @@ public class CMUpsertUserPrintSubtractHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = String.valueOf(request.get("userId"));
UserCardPrintState userCardPrintState = mapper.convert(request.get("userCardPrintState"), UserCardPrintState.class);
List<UserItem> userItemList = mapper.convert(request.get("userItemList"), new TypeReference<List<UserItem>>() {});

View File

@ -28,7 +28,7 @@ public class EndMatchingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
//roomId, userId
Map<String, Object> matchingResult = new LinkedHashMap<>();

View File

@ -61,7 +61,7 @@ public class GameLoginHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Optional<Chu3UserData> userDataOptional = userDataService.getUserByExtId(userId);
boolean userPresent = userDataOptional.isPresent();

View File

@ -25,7 +25,7 @@ public class GameLogoutHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String json = mapper.write(new CodeResp(1));
logger.info("Response: " + json);

View File

@ -31,7 +31,7 @@ public class GetGameChargeHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
List<GameCharge> gameChargeList = gameChargeRepository.findAll();

View File

@ -33,7 +33,7 @@ public class GetGameEventHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String type = (String) request.get("type");
List<GameEvent> gameEventList = gameEventRepository.findByEnable(true);

View File

@ -31,7 +31,7 @@ public class GetGameGachaCardByIdHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
int gachaId = ((Number) request.get("gachaId")).intValue();
List<GameGachaCard> gameGachaCardList = gameGachaCardService.getByGachaId(gachaId);

View File

@ -31,7 +31,7 @@ public class GetGameGachaHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
List<GameGacha> gameGachaList = gameGachaRepository.findAll();

View File

@ -29,7 +29,7 @@ public class GetGameIdlistHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String type = (String) request.get("type");
List<Object> gameIdlistList = new ArrayList<>();

View File

@ -28,7 +28,7 @@ public class GetGameRankingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String type = (String) request.get("type");
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -45,7 +45,7 @@ public class GetGameSettingHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
// Fixed reboot time triggers chusan maintenance lockout, so let's try minime method which sets it dynamically
// Special thanks to skogaby

View File

@ -29,7 +29,7 @@ public class GetMatchingStateHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String roomId = (String) request.get("roomId");
MatchingMemberInfo matchingMemberInfo = mapper.convert(request.get("matchingMemberInfo"), MatchingMemberInfo.class);

View File

@ -24,7 +24,7 @@ public class GetTeamCourseRuleHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -24,7 +24,7 @@ public class GetTeamCourseSettingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");

View File

@ -34,7 +34,7 @@ public class GetUserActivityHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
String kind = (String) request.get("kind");

View File

@ -34,7 +34,7 @@ public class GetUserCMissionHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = Long.parseLong((String) request.get("userId"));
int missionId = Integer.parseInt((String) request.get("missionId"));

View File

@ -31,7 +31,7 @@ public class GetUserCardPrintErrorHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
Long userId = ((Number) request.get("userId")).longValue();
List<UserCardPrintState> userCardPrintStateList = userCardPrintStateRepository.findByUser_Card_ExtIdAndHasCompleted(userId, false);

View File

@ -36,7 +36,7 @@ public class GetUserCharacterHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
int nextIndex = Integer.parseInt((String) request.get("nextIndex"));
int maxCount = Integer.parseInt((String) request.get("maxCount"));

View File

@ -33,7 +33,7 @@ public class GetUserChargeHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
List<UserCharge> userChargeList = userChargeService.getByUserId(userId);

View File

@ -35,7 +35,7 @@ public class GetUserCourseHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -33,7 +33,7 @@ public class GetUserDataHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Optional<Chu3UserData> userDataOptional = userDataService.getUserByExtId(userId);

View File

@ -34,7 +34,7 @@ public class GetUserDuelHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
String duelId = (String) request.get("duelId");
String isAllDuel = (String) request.get("isAllDuel");

View File

@ -30,7 +30,7 @@ public class GetUserFavoriteItemHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
int kind = Integer.parseInt((String) request.get("kind"));
Long nextIndexVal = Long.parseLong((String) request.get("nextIndex"));

View File

@ -33,7 +33,7 @@ public class GetUserGachaHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = String.valueOf(request.get("userId"));
List<UserGacha> userGachaList = userGachaService.getByUserId(userId);

View File

@ -39,7 +39,7 @@ public class GetUserLoginBonusHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -42,7 +42,7 @@ public class GetUserMusicHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
int currentIndex = Integer.parseInt((String) request.get("nextIndex"));
int maxCount = Integer.parseInt((String) request.get("maxCount"));

View File

@ -25,7 +25,7 @@ public class GetUserNetBattleDataHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -23,7 +23,7 @@ public class GetUserNetBattleRankingInfoHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
logger.info("UserNetBattleRankingInfo Dummy Handler");
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -34,7 +34,7 @@ public class GetUserOptionHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Optional<UserGameOption> userGameOption = userGameOptionService.getByUserId(userId);

View File

@ -50,7 +50,7 @@ public class GetUserPreviewHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Optional<Chu3UserData> userData = userDataService.getUserByExtId(userId);

View File

@ -27,7 +27,7 @@ public class GetUserPrintedCardHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = String.valueOf(request.get("userId"));
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -40,7 +40,7 @@ public class GetUserRecentRatingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Optional<UserGeneralData> recentOptional = userGeneralDataService.getByUserIdAndKey(userId, "recent_rating_list");

View File

@ -29,7 +29,7 @@ public class GetUserRegionHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
List<Object> userRegionList = new ArrayList<>();

View File

@ -24,7 +24,7 @@ public class GetUserRivalDataHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -24,7 +24,7 @@ public class GetUserRivalMusicHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -30,7 +30,7 @@ public class GetUserSymbolChatSettingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
List<SymbolChatInfo> symbolChatInfoList = new ArrayList<>();

View File

@ -29,7 +29,7 @@ public class GetUserTeamHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
String playDate = (String) request.get("playDate");

View File

@ -27,7 +27,7 @@ public class RemoveMatchingMemberHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
Map<String, Object> resultMap = new LinkedHashMap<>();
resultMap.put("returnCode", 1);

View File

@ -31,7 +31,7 @@ public class RollGachaHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
int gachaId = ((Number) request.get("gachaId")).intValue();
int times = ((Number) request.get("times")).intValue();

View File

@ -54,7 +54,7 @@ public class UpsertUserAllHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
UpsertUserAll upsertUserAll = mapper.convert(request.get("upsertUserAll"), UpsertUserAll.class);

View File

@ -34,7 +34,7 @@ public class UpsertUserChargelogHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
String userId = (String) request.get("userId");
Chu3UserData user = userDataService.getUserByExtId(userId).orElseThrow();

View File

@ -1,13 +0,0 @@
package icu.samnyan.aqua.sega.general;
import com.fasterxml.jackson.core.JsonProcessingException;
import java.util.Map;
/**
* @author samnyan (privateamusement@protonmail.com)
*/
public interface BaseHandler {
Object handle(Map<String, Object> request) throws JsonProcessingException;
}

View File

@ -0,0 +1,11 @@
package icu.samnyan.aqua.sega.general
import com.fasterxml.jackson.core.JsonProcessingException
/**
* @author samnyan (privateamusement@protonmail.com)
*/
fun interface BaseHandler {
@Throws(JsonProcessingException::class)
fun handle(request: Map<String, Any>): Any?
}

View File

@ -18,7 +18,7 @@ import java.util.*
@Component
class CompressionFilter : OncePerRequestFilter() {
companion object {
val logger = logger()
val log = logger()
val b64d = Base64.getMimeDecoder()
val b64e = Base64.getMimeEncoder()
}
@ -51,13 +51,11 @@ class CompressionFilter : OncePerRequestFilter() {
try {
resp.outputStream.use { it.write(result); it.flush() }
} catch (e: EofException) {
logger.warn("- EOF: Client closed connection when writing result")
log.warn("- EOF: Client closed connection when writing result")
}
}
/**
* Filter games that are not diva
*/
/** Only games (other than WACCA) require response compression */
override fun shouldNotFilter(req: HttpServletRequest) =
!(req.servletPath.startsWith("/g/") && !req.servletPath.startsWith("/g/wacca"))
}

View File

@ -31,7 +31,7 @@ public class GetGameEventHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
int type = ((Number) request.get("type")).intValue();
Boolean isAllEvent = (Boolean) request.get("isAllEvent");

View File

@ -32,7 +32,7 @@ public class GetGameRankingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
int type = ((Number) request.get("type")).intValue();
String dataName = "maimai_game_ranking_";

View File

@ -42,7 +42,7 @@ public class GetGameSettingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
PropertyEntry start = propertyEntryRepository.findByPropertyKey("reboot_start_time")
.orElseGet(() -> new PropertyEntry("reboot_start_time", "2020-01-01 07:00:00.0"));

View File

@ -34,7 +34,7 @@ public class GetTransferFriendHandler implements BaseHandler {
*
*/
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
return "{}";
}
}

View File

@ -31,7 +31,7 @@ public class GetUserActivityHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Integer kind = (Integer) request.get("kind");

View File

@ -31,7 +31,7 @@ public class GetUserBossHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Optional<UserBoss> userBossOptional = userBossRepository.findByUser_Card_ExtId(userId);

View File

@ -31,7 +31,7 @@ public class GetUserCharacterHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserCharacter> userCharacterList = userCharacterRepository.findByUser_Card_ExtId(userId);

View File

@ -33,7 +33,7 @@ public class GetUserCourseHandler implements BaseHandler {
*
*/
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@ -30,7 +30,7 @@ public class GetUserDataHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
UserData userData = userDataRepository.findByCard_ExtId(userId).orElseThrow();

View File

@ -31,7 +31,7 @@ public class GetUserGradeHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
UserGeneralData userData = userGeneralDataRepository.findByUser_Card_ExtIdAndPropertyKey(userId, "user_grade_status")

View File

@ -32,7 +32,7 @@ public class GetUserItemHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
long nextIndexVal = ((Number) request.get("nextIndex")).longValue();
int maxCount = ((Number) request.get("maxCount")).intValue();

Some files were not shown because too many files have changed in this diff Show More