forked from Cookies_Public/AquaDX
[O] Remove unnecessarily long constructors
This commit is contained in:
parent
8dd4bb9d61
commit
0f1d6c0984
@ -2,6 +2,7 @@ package icu.samnyan.aqua.api.controller.general;
|
|||||||
|
|
||||||
import icu.samnyan.aqua.sega.diva.dao.userdata.PlayerScreenShotRepository;
|
import icu.samnyan.aqua.sega.diva.dao.userdata.PlayerScreenShotRepository;
|
||||||
import icu.samnyan.aqua.sega.diva.model.userdata.PlayerScreenShot;
|
import icu.samnyan.aqua.sega.diva.model.userdata.PlayerScreenShot;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.core.io.FileSystemResource;
|
import org.springframework.core.io.FileSystemResource;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
@ -19,14 +20,10 @@ import java.util.Optional;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/static")
|
@RequestMapping("api/static")
|
||||||
|
@AllArgsConstructor
|
||||||
public class StaticController {
|
public class StaticController {
|
||||||
|
|
||||||
private final PlayerScreenShotRepository playerScreenShotRepository;
|
private final PlayerScreenShotRepository playerScreenShotRepository;
|
||||||
|
|
||||||
public StaticController(PlayerScreenShotRepository playerScreenShotRepository) {
|
|
||||||
this.playerScreenShotRepository = playerScreenShotRepository;
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping(value = "screenshot/{filename}", produces = MediaType.IMAGE_JPEG_VALUE)
|
@GetMapping(value = "screenshot/{filename}", produces = MediaType.IMAGE_JPEG_VALUE)
|
||||||
public ResponseEntity<Resource> getScreenshotFile(@PathVariable String filename) {
|
public ResponseEntity<Resource> getScreenshotFile(@PathVariable String filename) {
|
||||||
Optional<PlayerScreenShot> ss = playerScreenShotRepository.findByFileName(filename);
|
Optional<PlayerScreenShot> ss = playerScreenShotRepository.findByFileName(filename);
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package icu.samnyan.aqua.api.controller.sega;
|
|||||||
|
|
||||||
import icu.samnyan.aqua.sega.general.model.Card;
|
import icu.samnyan.aqua.sega.general.model.Card;
|
||||||
import icu.samnyan.aqua.sega.general.service.CardService;
|
import icu.samnyan.aqua.sega.general.service.CardService;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
@ -16,14 +17,11 @@ import java.util.Optional;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/sega/aime")
|
@RequestMapping("api/sega/aime")
|
||||||
|
@AllArgsConstructor
|
||||||
public class ApiAimeController {
|
public class ApiAimeController {
|
||||||
|
|
||||||
private final CardService cardService;
|
private final CardService cardService;
|
||||||
|
|
||||||
public ApiAimeController(CardService cardService) {
|
|
||||||
this.cardService = cardService;
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping("getByAccessCode")
|
@PostMapping("getByAccessCode")
|
||||||
public Optional<Card> getByAccessCode(@RequestBody Map<String, String> request) {
|
public Optional<Card> getByAccessCode(@RequestBody Map<String, String> request) {
|
||||||
return cardService.getCardByAccessCode(request.get("accessCode").replaceAll("-", "").replaceAll(" ", ""));
|
return cardService.getCardByAccessCode(request.get("accessCode").replaceAll("-", "").replaceAll(" ", ""));
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import icu.samnyan.aqua.sega.chunithm.model.gamedata.Character;
|
|||||||
import icu.samnyan.aqua.sega.chunithm.model.gamedata.CharacterSkill;
|
import icu.samnyan.aqua.sega.chunithm.model.gamedata.CharacterSkill;
|
||||||
import icu.samnyan.aqua.sega.chunithm.model.gamedata.Music;
|
import icu.samnyan.aqua.sega.chunithm.model.gamedata.Music;
|
||||||
import icu.samnyan.aqua.sega.chunithm.service.GameMusicService;
|
import icu.samnyan.aqua.sega.chunithm.service.GameMusicService;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
@ -17,18 +18,13 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/game/chuni/v1/data")
|
@RequestMapping("api/game/chuni/v1/data")
|
||||||
|
@AllArgsConstructor
|
||||||
public class ApiChuniV1GameDataController {
|
public class ApiChuniV1GameDataController {
|
||||||
|
|
||||||
private final GameMusicService gameMusicService;
|
private final GameMusicService gameMusicService;
|
||||||
private final GameCharacterRepository gameCharacterRepository;
|
private final GameCharacterRepository gameCharacterRepository;
|
||||||
private final GameCharacterSkillRepository gameCharacterSkillRepository;
|
private final GameCharacterSkillRepository gameCharacterSkillRepository;
|
||||||
|
|
||||||
public ApiChuniV1GameDataController(GameMusicService gameMusicService, GameCharacterRepository gameCharacterRepository, GameCharacterSkillRepository gameCharacterSkillRepository) {
|
|
||||||
this.gameMusicService = gameMusicService;
|
|
||||||
this.gameCharacterRepository = gameCharacterRepository;
|
|
||||||
this.gameCharacterSkillRepository = gameCharacterSkillRepository;
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("music")
|
@GetMapping("music")
|
||||||
public List<Music> getMusic() {
|
public List<Music> getMusic() {
|
||||||
return gameMusicService.getAll();
|
return gameMusicService.getAll();
|
||||||
@ -43,15 +39,4 @@ public class ApiChuniV1GameDataController {
|
|||||||
public List<CharacterSkill> getSkill() {
|
public List<CharacterSkill> getSkill() {
|
||||||
return gameCharacterSkillRepository.findAll();
|
return gameCharacterSkillRepository.findAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
// @PostMapping("character")
|
|
||||||
// public List<Character> importCharacter(@RequestBody List<Character> req) {
|
|
||||||
// return gameCharacterRepository.saveAll(req);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// @PostMapping("skill")
|
|
||||||
// public List<CharacterSkill> importSkill(@RequestBody List<CharacterSkill> req) {
|
|
||||||
// return gameCharacterSkillRepository.saveAll(req);
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,6 +18,7 @@ import icu.samnyan.aqua.sega.general.model.Card;
|
|||||||
import icu.samnyan.aqua.sega.general.service.CardService;
|
import icu.samnyan.aqua.sega.general.service.CardService;
|
||||||
import icu.samnyan.aqua.sega.util.VersionInfo;
|
import icu.samnyan.aqua.sega.util.VersionInfo;
|
||||||
import icu.samnyan.aqua.sega.util.VersionUtil;
|
import icu.samnyan.aqua.sega.util.VersionUtil;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@ -39,6 +40,7 @@ import java.util.stream.Collectors;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/game/chuni/v1")
|
@RequestMapping("api/game/chuni/v1")
|
||||||
|
@AllArgsConstructor
|
||||||
public class ApiChuniV1PlayerDataController {
|
public class ApiChuniV1PlayerDataController {
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(ApiChuniV1PlayerDataController.class);
|
private static final Logger logger = LoggerFactory.getLogger(ApiChuniV1PlayerDataController.class);
|
||||||
@ -64,28 +66,6 @@ public class ApiChuniV1PlayerDataController {
|
|||||||
|
|
||||||
private final GameMusicService gameMusicService;
|
private final GameMusicService gameMusicService;
|
||||||
|
|
||||||
@Autowired
|
|
||||||
public ApiChuniV1PlayerDataController(ApiMapper mapper, CardService cardService, UserActivityService userActivityService, UserCharacterService userCharacterService, UserChargeService userChargeService, UserDataService userDataService, UserDataExService userDataExService, UserGameOptionExService userGameOptionExService, UserMapService userMapService, UserPlaylogService userPlaylogService, UserMusicDetailService userMusicDetailService, UserCourseService userCourseService, UserDuelService userDuelService, UserGameOptionService userGameOptionService, UserItemService userItemService, UserGeneralDataService userGeneralDataService, GameMusicService gameMusicService) {
|
|
||||||
this.mapper = mapper;
|
|
||||||
this.cardService = cardService;
|
|
||||||
this.userActivityService = userActivityService;
|
|
||||||
this.userCharacterService = userCharacterService;
|
|
||||||
this.userChargeService = userChargeService;
|
|
||||||
this.userDataService = userDataService;
|
|
||||||
this.userDataExService = userDataExService;
|
|
||||||
this.userGameOptionExService = userGameOptionExService;
|
|
||||||
this.userMapService = userMapService;
|
|
||||||
this.userPlaylogService = userPlaylogService;
|
|
||||||
this.userMusicDetailService = userMusicDetailService;
|
|
||||||
this.userCourseService = userCourseService;
|
|
||||||
this.userDuelService = userDuelService;
|
|
||||||
this.userGameOptionService = userGameOptionService;
|
|
||||||
this.userItemService = userItemService;
|
|
||||||
this.userGeneralDataService = userGeneralDataService;
|
|
||||||
this.gameMusicService = gameMusicService;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Keep it here for legacy
|
// Keep it here for legacy
|
||||||
@GetMapping("music")
|
@GetMapping("music")
|
||||||
public List<Music> getMusicList() {
|
public List<Music> getMusicList() {
|
||||||
|
|||||||
@ -3,6 +3,7 @@ package icu.samnyan.aqua.api.controller.sega.game.chuni.v2;
|
|||||||
import icu.samnyan.aqua.sega.chusan.model.*;
|
import icu.samnyan.aqua.sega.chusan.model.*;
|
||||||
import icu.samnyan.aqua.sega.chusan.model.gamedata.Character;
|
import icu.samnyan.aqua.sega.chusan.model.gamedata.Character;
|
||||||
import icu.samnyan.aqua.sega.chusan.model.gamedata.*;
|
import icu.samnyan.aqua.sega.chusan.model.gamedata.*;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
@ -14,6 +15,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/game/chuni/v2/data")
|
@RequestMapping("api/game/chuni/v2/data")
|
||||||
|
@AllArgsConstructor
|
||||||
public class ApiChuniV2GameDataController {
|
public class ApiChuniV2GameDataController {
|
||||||
|
|
||||||
private final Chu3GameMusicRepo gameMusicRepository;
|
private final Chu3GameMusicRepo gameMusicRepository;
|
||||||
@ -25,17 +27,6 @@ public class ApiChuniV2GameDataController {
|
|||||||
private final Chu3GameFrameRepo gameFrameRepository;
|
private final Chu3GameFrameRepo gameFrameRepository;
|
||||||
private final Chu3GameAvatarAccRepo gameAvatarAccRepository;
|
private final Chu3GameAvatarAccRepo gameAvatarAccRepository;
|
||||||
|
|
||||||
public ApiChuniV2GameDataController(Chu3GameMusicRepo gameMusicRepository, Chu3GameCharacterRepo gameCharacterRepository, Chu3GameTrophyRepo gameTrophyRepository, Chu3GameNamePlateRepo gameNamePlateRepository, Chu3GameSystemVoiceRepo gameSystemVoiceRepository, Chu3GameMapIconRepo gameMapIconRepository, Chu3GameFrameRepo gameFrameRepository, Chu3GameAvatarAccRepo gameAvatarAccRepository) {
|
|
||||||
this.gameMusicRepository = gameMusicRepository;
|
|
||||||
this.gameCharacterRepository = gameCharacterRepository;
|
|
||||||
this.gameTrophyRepository = gameTrophyRepository;
|
|
||||||
this.gameNamePlateRepository = gameNamePlateRepository;
|
|
||||||
this.gameSystemVoiceRepository = gameSystemVoiceRepository;
|
|
||||||
this.gameMapIconRepository = gameMapIconRepository;
|
|
||||||
this.gameFrameRepository = gameFrameRepository;
|
|
||||||
this.gameAvatarAccRepository = gameAvatarAccRepository;
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("music")
|
@GetMapping("music")
|
||||||
public List<Music> getMusic() {
|
public List<Music> getMusic() {
|
||||||
return gameMusicRepository.findAll();
|
return gameMusicRepository.findAll();
|
||||||
|
|||||||
@ -18,6 +18,7 @@ import icu.samnyan.aqua.sega.general.model.Card;
|
|||||||
import icu.samnyan.aqua.sega.general.service.CardService;
|
import icu.samnyan.aqua.sega.general.service.CardService;
|
||||||
import icu.samnyan.aqua.sega.util.VersionInfo;
|
import icu.samnyan.aqua.sega.util.VersionInfo;
|
||||||
import icu.samnyan.aqua.sega.util.VersionUtil;
|
import icu.samnyan.aqua.sega.util.VersionUtil;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@ -39,6 +40,7 @@ import java.util.stream.Collectors;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/game/chuni/v2")
|
@RequestMapping("api/game/chuni/v2")
|
||||||
|
@AllArgsConstructor
|
||||||
public class ApiChuniV2PlayerDataController {
|
public class ApiChuniV2PlayerDataController {
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(ApiChuniV2PlayerDataController.class);
|
private static final Logger logger = LoggerFactory.getLogger(ApiChuniV2PlayerDataController.class);
|
||||||
@ -61,33 +63,6 @@ public class ApiChuniV2PlayerDataController {
|
|||||||
private final UserGeneralDataService userGeneralDataService;
|
private final UserGeneralDataService userGeneralDataService;
|
||||||
private final GameMusicService gameMusicService;
|
private final GameMusicService gameMusicService;
|
||||||
|
|
||||||
@Autowired
|
|
||||||
public ApiChuniV2PlayerDataController(ApiMapper mapper, CardService cardService, UserActivityService userActivityService, UserCharacterService userCharacterService, UserChargeService userChargeService, UserDataService userDataService, UserMapAreaService userMapAreaService, UserPlaylogService userPlaylogService, UserMusicDetailService userMusicDetailService, UserCourseService userCourseService, UserDuelService userDuelService, UserGameOptionService userGameOptionService, UserItemService userItemService, UserGeneralDataService userGeneralDataService, GameMusicService gameMusicService) {
|
|
||||||
this.mapper = mapper;
|
|
||||||
this.cardService = cardService;
|
|
||||||
this.userActivityService = userActivityService;
|
|
||||||
this.userCharacterService = userCharacterService;
|
|
||||||
this.userChargeService = userChargeService;
|
|
||||||
this.userDataService = userDataService;
|
|
||||||
this.userMapAreaService = userMapAreaService;
|
|
||||||
this.userPlaylogService = userPlaylogService;
|
|
||||||
this.userMusicDetailService = userMusicDetailService;
|
|
||||||
this.userCourseService = userCourseService;
|
|
||||||
this.userDuelService = userDuelService;
|
|
||||||
this.userGameOptionService = userGameOptionService;
|
|
||||||
this.userItemService = userItemService;
|
|
||||||
this.userGeneralDataService = userGeneralDataService;
|
|
||||||
this.gameMusicService = gameMusicService;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
// Keep it here for legacy
|
|
||||||
@GetMapping("music")
|
|
||||||
public List<Music> getMusicList() {
|
|
||||||
return gameMusicService.getAll();
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Basic info
|
* Get Basic info
|
||||||
*
|
*
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import icu.samnyan.aqua.sega.diva.dao.gamedata.DivaPvRepository;
|
|||||||
import icu.samnyan.aqua.sega.diva.model.gamedata.DivaCustomize;
|
import icu.samnyan.aqua.sega.diva.model.gamedata.DivaCustomize;
|
||||||
import icu.samnyan.aqua.sega.diva.model.gamedata.DivaModule;
|
import icu.samnyan.aqua.sega.diva.model.gamedata.DivaModule;
|
||||||
import icu.samnyan.aqua.sega.diva.model.gamedata.Pv;
|
import icu.samnyan.aqua.sega.diva.model.gamedata.Pv;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
@ -17,18 +18,13 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/game/diva/data")
|
@RequestMapping("api/game/diva/data")
|
||||||
|
@AllArgsConstructor
|
||||||
public class ApiDivaGameDataController {
|
public class ApiDivaGameDataController {
|
||||||
|
|
||||||
private final DivaModuleRepository divaModuleRepository;
|
private final DivaModuleRepository divaModuleRepository;
|
||||||
private final DivaCustomizeRepository divaCustomizeRepository;
|
private final DivaCustomizeRepository divaCustomizeRepository;
|
||||||
private final DivaPvRepository divaPvRepository;
|
private final DivaPvRepository divaPvRepository;
|
||||||
|
|
||||||
public ApiDivaGameDataController(DivaModuleRepository divaModuleRepository, DivaCustomizeRepository divaCustomizeRepository, DivaPvRepository divaPvRepository) {
|
|
||||||
this.divaModuleRepository = divaModuleRepository;
|
|
||||||
this.divaCustomizeRepository = divaCustomizeRepository;
|
|
||||||
this.divaPvRepository = divaPvRepository;
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping(value = "musicList")
|
@GetMapping(value = "musicList")
|
||||||
public List<Pv> musicList() {
|
public List<Pv> musicList() {
|
||||||
return divaPvRepository.findAll();
|
return divaPvRepository.findAll();
|
||||||
|
|||||||
@ -8,6 +8,7 @@ import icu.samnyan.aqua.sega.diva.model.common.Difficulty;
|
|||||||
import icu.samnyan.aqua.sega.diva.model.common.Edition;
|
import icu.samnyan.aqua.sega.diva.model.common.Edition;
|
||||||
import icu.samnyan.aqua.sega.diva.model.userdata.*;
|
import icu.samnyan.aqua.sega.diva.model.userdata.*;
|
||||||
import icu.samnyan.aqua.sega.diva.service.PlayerProfileService;
|
import icu.samnyan.aqua.sega.diva.service.PlayerProfileService;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.PageRequest;
|
import org.springframework.data.domain.PageRequest;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
@ -21,6 +22,7 @@ import java.util.*;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/game/diva")
|
@RequestMapping("api/game/diva")
|
||||||
|
@AllArgsConstructor
|
||||||
public class ApiDivaPlayerDataController {
|
public class ApiDivaPlayerDataController {
|
||||||
|
|
||||||
private final PlayerProfileService playerProfileService;
|
private final PlayerProfileService playerProfileService;
|
||||||
@ -33,17 +35,6 @@ public class ApiDivaPlayerDataController {
|
|||||||
private final PlayerCustomizeRepository playerCustomizeRepository;
|
private final PlayerCustomizeRepository playerCustomizeRepository;
|
||||||
private final PlayerScreenShotRepository playerScreenShotRepository;
|
private final PlayerScreenShotRepository playerScreenShotRepository;
|
||||||
|
|
||||||
public ApiDivaPlayerDataController(PlayerProfileService playerProfileService, GameSessionRepository gameSessionRepository, PlayLogRepository playLogRepository, PlayerPvRecordRepository playerPvRecordRepository, PlayerPvCustomizeRepository playerPvCustomizeRepository, PlayerModuleRepository playerModuleRepository, PlayerCustomizeRepository playerCustomizeRepository, PlayerScreenShotRepository playerScreenShotRepository) {
|
|
||||||
this.playerProfileService = playerProfileService;
|
|
||||||
this.gameSessionRepository = gameSessionRepository;
|
|
||||||
this.playLogRepository = playLogRepository;
|
|
||||||
this.playerPvRecordRepository = playerPvRecordRepository;
|
|
||||||
this.playerPvCustomizeRepository = playerPvCustomizeRepository;
|
|
||||||
this.playerModuleRepository = playerModuleRepository;
|
|
||||||
this.playerCustomizeRepository = playerCustomizeRepository;
|
|
||||||
this.playerScreenShotRepository = playerScreenShotRepository;
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping("forceUnlock")
|
@PostMapping("forceUnlock")
|
||||||
public ResponseEntity<MessageResponse> forceUnlock(@RequestParam int pdId) {
|
public ResponseEntity<MessageResponse> forceUnlock(@RequestParam int pdId) {
|
||||||
PlayerProfile profile = playerProfileService.findByPdId(pdId).orElseThrow();
|
PlayerProfile profile = playerProfileService.findByPdId(pdId).orElseThrow();
|
||||||
|
|||||||
@ -83,10 +83,10 @@ public class ApiMaimai2PlayerDataController {
|
|||||||
.map(Path::getFileName)
|
.map(Path::getFileName)
|
||||||
.map(Path::toString)
|
.map(Path::toString)
|
||||||
.sorted(Comparator.reverseOrder())
|
.sorted(Comparator.reverseOrder())
|
||||||
.collect(Collectors.toList());
|
.toList();
|
||||||
Photo.setTotalImage(matchedFiles.size());
|
Photo.setTotalImage(matchedFiles.size());
|
||||||
Photo.setImageIndex(imageIndex);
|
Photo.setImageIndex(imageIndex);
|
||||||
if(matchedFiles.size() > imageIndex){
|
if(matchedFiles.size() > imageIndex) {
|
||||||
byte[] targetImageContent = Files.readAllBytes(Paths.get("data/" + matchedFiles.get(imageIndex)));
|
byte[] targetImageContent = Files.readAllBytes(Paths.get("data/" + matchedFiles.get(imageIndex)));
|
||||||
String divData = Base64.getEncoder().encodeToString(targetImageContent);
|
String divData = Base64.getEncoder().encodeToString(targetImageContent);
|
||||||
Photo.setDivData(divData);
|
Photo.setDivData(divData);
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package icu.samnyan.aqua.api.controller.sega.game.ongeki;
|
|||||||
|
|
||||||
import icu.samnyan.aqua.sega.ongeki.dao.gamedata.*;
|
import icu.samnyan.aqua.sega.ongeki.dao.gamedata.*;
|
||||||
import icu.samnyan.aqua.sega.ongeki.model.gamedata.*;
|
import icu.samnyan.aqua.sega.ongeki.model.gamedata.*;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -11,6 +12,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/game/ongeki/data")
|
@RequestMapping("api/game/ongeki/data")
|
||||||
|
@AllArgsConstructor
|
||||||
public class ApiOngekiGameDataController {
|
public class ApiOngekiGameDataController {
|
||||||
|
|
||||||
private final GameCardRepository gameCardRepository;
|
private final GameCardRepository gameCardRepository;
|
||||||
@ -19,14 +21,6 @@ public class ApiOngekiGameDataController {
|
|||||||
private final GameMusicRepository gameMusicRepository;
|
private final GameMusicRepository gameMusicRepository;
|
||||||
private final GameSkillRepository gameSkillRepository;
|
private final GameSkillRepository gameSkillRepository;
|
||||||
|
|
||||||
public ApiOngekiGameDataController(GameCardRepository gameCardRepository, GameCharaRepository gameCharaRepository, GameEventRepository gameEventRepository, GameMusicRepository gameMusicRepository, GameSkillRepository gameSkillRepository) {
|
|
||||||
this.gameCardRepository = gameCardRepository;
|
|
||||||
this.gameCharaRepository = gameCharaRepository;
|
|
||||||
this.gameEventRepository = gameEventRepository;
|
|
||||||
this.gameMusicRepository = gameMusicRepository;
|
|
||||||
this.gameSkillRepository = gameSkillRepository;
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("cardList")
|
@GetMapping("cardList")
|
||||||
public List<GameCard> getCardList() {
|
public List<GameCard> getCardList() {
|
||||||
return gameCardRepository.findAll();
|
return gameCardRepository.findAll();
|
||||||
|
|||||||
@ -16,6 +16,7 @@ import icu.samnyan.aqua.sega.ongeki.dao.userdata.*;
|
|||||||
import icu.samnyan.aqua.sega.ongeki.model.gamedata.GameCard;
|
import icu.samnyan.aqua.sega.ongeki.model.gamedata.GameCard;
|
||||||
import icu.samnyan.aqua.sega.ongeki.model.response.data.UserRivalData;
|
import icu.samnyan.aqua.sega.ongeki.model.response.data.UserRivalData;
|
||||||
import icu.samnyan.aqua.sega.ongeki.model.userdata.*;
|
import icu.samnyan.aqua.sega.ongeki.model.userdata.*;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.PageRequest;
|
import org.springframework.data.domain.PageRequest;
|
||||||
@ -35,6 +36,7 @@ import java.util.stream.Collectors;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/game/ongeki")
|
@RequestMapping("api/game/ongeki")
|
||||||
|
@AllArgsConstructor
|
||||||
public class ApiOngekiPlayerDataController {
|
public class ApiOngekiPlayerDataController {
|
||||||
|
|
||||||
private final ApiMapper mapper;
|
private final ApiMapper mapper;
|
||||||
@ -76,38 +78,6 @@ public class ApiOngekiPlayerDataController {
|
|||||||
|
|
||||||
private final GameCardRepository gameCardRepository;
|
private final GameCardRepository gameCardRepository;
|
||||||
|
|
||||||
public ApiOngekiPlayerDataController(ApiMapper mapper, CardService cardService, UserRivalDataRepository userRivalDataRepository, UserActivityRepository userActivityRepository, UserCardRepository userCardRepository, UserChapterRepository userChapterRepository, UserCharacterRepository userCharacterRepository, UserDataRepository userDataRepository, UserDeckRepository userDeckRepository, UserEventPointRepository userEventPointRepository, UserItemRepository userItemRepository, UserLoginBonusRepository userLoginBonusRepository, UserMissionPointRepository userMissionPointRepository, UserMusicDetailRepository userMusicDetailRepository, UserMusicItemRepository userMusicItemRepository, UserOptionRepository userOptionRepository, UserPlaylogRepository userPlaylogRepository, UserStoryRepository userStoryRepository, UserTrainingRoomRepository userTrainingRoomRepository, UserGeneralDataRepository userGeneralDataRepository, GameCardRepository gameCardRepository, UserTradeItemRepository userTradeItemRepository, UserEventMusicRepository userEventMusicRepository, UserTechEventRepository userTechEventRepository, UserKopRepository userKopRepository, UserMemoryChapterRepository userMemoryChapterRepository, UserScenarioRepository userScenarioRepository, UserBossRepository userBossRepository, UserTechCountRepository userTechCountRepository) {
|
|
||||||
this.mapper = mapper;
|
|
||||||
this.cardService = cardService;
|
|
||||||
this.userActivityRepository = userActivityRepository;
|
|
||||||
this.userCardRepository = userCardRepository;
|
|
||||||
this.userChapterRepository = userChapterRepository;
|
|
||||||
this.userCharacterRepository = userCharacterRepository;
|
|
||||||
this.userDataRepository = userDataRepository;
|
|
||||||
this.userDeckRepository = userDeckRepository;
|
|
||||||
this.userEventPointRepository = userEventPointRepository;
|
|
||||||
this.userItemRepository = userItemRepository;
|
|
||||||
this.userLoginBonusRepository = userLoginBonusRepository;
|
|
||||||
this.userMissionPointRepository = userMissionPointRepository;
|
|
||||||
this.userMusicDetailRepository = userMusicDetailRepository;
|
|
||||||
this.userMusicItemRepository = userMusicItemRepository;
|
|
||||||
this.userOptionRepository = userOptionRepository;
|
|
||||||
this.userPlaylogRepository = userPlaylogRepository;
|
|
||||||
this.userStoryRepository = userStoryRepository;
|
|
||||||
this.userTrainingRoomRepository = userTrainingRoomRepository;
|
|
||||||
this.userGeneralDataRepository = userGeneralDataRepository;
|
|
||||||
this.gameCardRepository = gameCardRepository;
|
|
||||||
this.userTradeItemRepository = userTradeItemRepository;
|
|
||||||
this.userEventMusicRepository = userEventMusicRepository;
|
|
||||||
this.userTechEventRepository = userTechEventRepository;
|
|
||||||
this.userKopRepository = userKopRepository;
|
|
||||||
this.userMemoryChapterRepository = userMemoryChapterRepository;
|
|
||||||
this.userScenarioRepository = userScenarioRepository;
|
|
||||||
this.userBossRepository = userBossRepository;
|
|
||||||
this.userTechCountRepository = userTechCountRepository;
|
|
||||||
this.userRivalDataRepository = userRivalDataRepository;
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("profile")
|
@GetMapping("profile")
|
||||||
public ProfileResp getProfile(@RequestParam long aimeId) {
|
public ProfileResp getProfile(@RequestParam long aimeId) {
|
||||||
return mapper.convert(userDataRepository.findByCard_ExtId(aimeId).orElseThrow(), new TypeReference<>() {
|
return mapper.convert(userDataRepository.findByCard_ExtId(aimeId).orElseThrow(), new TypeReference<>() {
|
||||||
|
|||||||
@ -7,6 +7,7 @@ import icu.samnyan.aqua.sega.chunithm.model.userdata.UserMusicDetail;
|
|||||||
import icu.samnyan.aqua.sega.chunithm.service.GameMusicService;
|
import icu.samnyan.aqua.sega.chunithm.service.GameMusicService;
|
||||||
import icu.samnyan.aqua.sega.chunithm.service.UserDataService;
|
import icu.samnyan.aqua.sega.chunithm.service.UserDataService;
|
||||||
import icu.samnyan.aqua.sega.chunithm.service.UserMusicDetailService;
|
import icu.samnyan.aqua.sega.chunithm.service.UserMusicDetailService;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
@ -24,6 +25,7 @@ import java.util.Optional;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/manage/chuni/v1")
|
@RequestMapping("api/manage/chuni/v1")
|
||||||
|
@AllArgsConstructor
|
||||||
public class ApiChuniV1ManageController {
|
public class ApiChuniV1ManageController {
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(ApiChuniV1ManageController.class);
|
private static final Logger logger = LoggerFactory.getLogger(ApiChuniV1ManageController.class);
|
||||||
@ -34,12 +36,6 @@ public class ApiChuniV1ManageController {
|
|||||||
|
|
||||||
private final GameMusicService gameMusicService;
|
private final GameMusicService gameMusicService;
|
||||||
|
|
||||||
public ApiChuniV1ManageController(UserDataService userDataService, UserMusicDetailService userMusicDetailService, GameMusicService gameMusicService) {
|
|
||||||
this.userDataService = userDataService;
|
|
||||||
this.userMusicDetailService = userMusicDetailService;
|
|
||||||
this.gameMusicService = gameMusicService;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A request to fill fake score to all chart. only use for testing
|
* A request to fill fake score to all chart. only use for testing
|
||||||
* @param aimeId The internal id of a card
|
* @param aimeId The internal id of a card
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import icu.samnyan.aqua.sega.diva.model.common.Edition;
|
|||||||
import icu.samnyan.aqua.sega.diva.model.gamedata.*;
|
import icu.samnyan.aqua.sega.diva.model.gamedata.*;
|
||||||
import icu.samnyan.aqua.sega.general.dao.PropertyEntryRepository;
|
import icu.samnyan.aqua.sega.general.dao.PropertyEntryRepository;
|
||||||
import icu.samnyan.aqua.sega.general.model.PropertyEntry;
|
import icu.samnyan.aqua.sega.general.model.PropertyEntry;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -21,6 +22,7 @@ import java.util.Optional;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/manage/diva/")
|
@RequestMapping("api/manage/diva/")
|
||||||
|
@AllArgsConstructor
|
||||||
public class ApiDivaManageController {
|
public class ApiDivaManageController {
|
||||||
|
|
||||||
private final PvEntryRepository pvEntryRepository;
|
private final PvEntryRepository pvEntryRepository;
|
||||||
@ -29,17 +31,6 @@ public class ApiDivaManageController {
|
|||||||
private final FestaRepository festaRepository;
|
private final FestaRepository festaRepository;
|
||||||
private final ContestRepository contestRepository;
|
private final ContestRepository contestRepository;
|
||||||
private final PropertyEntryRepository propertyEntryRepository;
|
private final PropertyEntryRepository propertyEntryRepository;
|
||||||
private final DivaPvRepository divaPvRepository;
|
|
||||||
|
|
||||||
public ApiDivaManageController(PvEntryRepository pvEntryRepository, DivaModuleRepository moduleRepository, DivaCustomizeRepository customizeRepository, FestaRepository festaRepository, ContestRepository contestRepository, PropertyEntryRepository propertyEntryRepository, DivaPvRepository divaPvRepository) {
|
|
||||||
this.pvEntryRepository = pvEntryRepository;
|
|
||||||
this.moduleRepository = moduleRepository;
|
|
||||||
this.customizeRepository = customizeRepository;
|
|
||||||
this.festaRepository = festaRepository;
|
|
||||||
this.contestRepository = contestRepository;
|
|
||||||
this.propertyEntryRepository = propertyEntryRepository;
|
|
||||||
this.divaPvRepository = divaPvRepository;
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping("pvList")
|
@PostMapping("pvList")
|
||||||
public List<PvEntry> updatePvList(@RequestBody PvListRequest request) {
|
public List<PvEntry> updatePvList(@RequestBody PvListRequest request) {
|
||||||
|
|||||||
@ -5,10 +5,7 @@ import ext.RP
|
|||||||
import ext.Str
|
import ext.Str
|
||||||
import icu.samnyan.aqua.net.db.AquaUserServices
|
import icu.samnyan.aqua.net.db.AquaUserServices
|
||||||
import icu.samnyan.aqua.net.utils.*
|
import icu.samnyan.aqua.net.utils.*
|
||||||
import icu.samnyan.aqua.sega.chusan.dao.userdata.*
|
import icu.samnyan.aqua.sega.chusan.model.*
|
||||||
import icu.samnyan.aqua.sega.chusan.model.Chu3UserDataRepo
|
|
||||||
import icu.samnyan.aqua.sega.chusan.model.Chu3UserGeneralDataRepo
|
|
||||||
import icu.samnyan.aqua.sega.chusan.model.Chu3UserPlaylogRepo
|
|
||||||
import org.springframework.web.bind.annotation.RestController
|
import org.springframework.web.bind.annotation.RestController
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
|
|||||||
@ -3,6 +3,7 @@ package icu.samnyan.aqua.sega.chunithm.controller;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
import icu.samnyan.aqua.sega.chunithm.handler.impl.*;
|
import icu.samnyan.aqua.sega.chunithm.handler.impl.*;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@ -13,6 +14,7 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/g/chu2/{ROM_VERSION}/{CLIENT_ID}/ChuniServlet")
|
@RequestMapping("/g/chu2/{ROM_VERSION}/{CLIENT_ID}/ChuniServlet")
|
||||||
|
@AllArgsConstructor
|
||||||
public class ChuniServletController {
|
public class ChuniServletController {
|
||||||
|
|
||||||
private final GameLoginHandler gameLoginHandler;
|
private final GameLoginHandler gameLoginHandler;
|
||||||
@ -47,56 +49,10 @@ public class ChuniServletController {
|
|||||||
private final GetUserRivalDataHandler getUserRivalDataHandler;
|
private final GetUserRivalDataHandler getUserRivalDataHandler;
|
||||||
private final GetUserRivalMusicHandler getUserRivalMusicHandler;
|
private final GetUserRivalMusicHandler getUserRivalMusicHandler;
|
||||||
private final GetUserTeamHandler getUserTeamHandler;
|
private final GetUserTeamHandler getUserTeamHandler;
|
||||||
private final UpsertClientBookkeepingHandler upsertClientBookkeepingHandler;
|
|
||||||
private final UpsertClientDevelopHandler upsertClientDevelopHandler;
|
|
||||||
private final UpsertClientErrorHandler upsertClientErrorHandler;
|
|
||||||
private final UpsertClientSettingHandler upsertClientSettingHandler;
|
private final UpsertClientSettingHandler upsertClientSettingHandler;
|
||||||
private final UpsertClientTestmodeHandler upsertClientTestmodeHandler;
|
|
||||||
private final UpsertUserAllHandler upsertUserAllHandler;
|
private final UpsertUserAllHandler upsertUserAllHandler;
|
||||||
private final UpsertUserChargelogHandler upsertUserChargelogHandler;
|
private final UpsertUserChargelogHandler upsertUserChargelogHandler;
|
||||||
|
|
||||||
@Autowired
|
|
||||||
public ChuniServletController(GameLoginHandler gameLoginHandler, GameLogoutHandler gameLogoutHandler, GetGameChargeHandler getGameChargeHandler, GetGameEventHandler getGameEventHandler, GetGameIdlistHandler getGameIdlistHandler, GetGameMessageHandler getGameMessageHandler, GetGameRankingHandler getGameRankingHandler, GetGameSaleHandler getGameSaleHandler, GetGameSettingHandler getGameSettingHandler,GetTeamCourseRuleHandler getTeamCourseRuleHandler, GetTeamCourseSettingHandler getTeamCourseSettingHandler, GetUserActivityHandler getUserActivityHandler, GetUserCharacterHandler getUserCharacterHandler, GetUserChargeHandler getUserChargeHandler, GetUserCourseHandler getUserCourseHandler, GetUserDataExHandler getUserDataExHandler, GetUserDataHandler getUserDataHandler, GetUserDuelHandler getUserDuelHandler, GetUserFavoriteItemHandler getUserFavoriteItemHandler, GetUserFavoriteMusicHandler getUserFavoriteMusicHandler, GetUserItemHandler getUserItemHandler, GetUserLoginBonusHandler getUserLoginBonusHandler, GetUserMapHandler getUserMapHandler, GetUserMusicHandler getUserMusicHandler, GetUserOptionExHandler getUserOptionExHandler, GetUserOptionHandler getUserOptionHandler, GetUserPreviewHandler getUserPreviewHandler, GetUserRecentRatingHandler getUserRecentRatingHandler, GetUserRegionHandler getUserRegionHandler, GetUserRivalDataHandler getUserRivalDataHandler, GetUserRivalMusicHandler getUserRivalMusicHandler, GetUserTeamHandler getUserTeamHandler, UpsertClientBookkeepingHandler upsertClientBookkeepingHandler, UpsertClientDevelopHandler upsertClientDevelopHandler, UpsertClientErrorHandler upsertClientErrorHandler, UpsertClientSettingHandler upsertClientSettingHandler, UpsertClientTestmodeHandler upsertClientTestmodeHandler, UpsertUserAllHandler upsertUserAllHandler, UpsertUserChargelogHandler upsertUserChargelogHandler) {
|
|
||||||
this.gameLoginHandler = gameLoginHandler;
|
|
||||||
this.gameLogoutHandler = gameLogoutHandler;
|
|
||||||
this.getGameChargeHandler = getGameChargeHandler;
|
|
||||||
this.getGameEventHandler = getGameEventHandler;
|
|
||||||
this.getGameIdlistHandler = getGameIdlistHandler;
|
|
||||||
this.getGameMessageHandler = getGameMessageHandler;
|
|
||||||
this.getGameRankingHandler = getGameRankingHandler;
|
|
||||||
this.getGameSaleHandler = getGameSaleHandler;
|
|
||||||
this.getGameSettingHandler = getGameSettingHandler;
|
|
||||||
this.getTeamCourseRuleHandler = getTeamCourseRuleHandler;
|
|
||||||
this.getTeamCourseSettingHandler = getTeamCourseSettingHandler;
|
|
||||||
this.getUserActivityHandler = getUserActivityHandler;
|
|
||||||
this.getUserCharacterHandler = getUserCharacterHandler;
|
|
||||||
this.getUserChargeHandler = getUserChargeHandler;
|
|
||||||
this.getUserCourseHandler = getUserCourseHandler;
|
|
||||||
this.getUserDataExHandler = getUserDataExHandler;
|
|
||||||
this.getUserDataHandler = getUserDataHandler;
|
|
||||||
this.getUserDuelHandler = getUserDuelHandler;
|
|
||||||
this.getUserFavoriteItemHandler = getUserFavoriteItemHandler;
|
|
||||||
this.getUserFavoriteMusicHandler = getUserFavoriteMusicHandler;
|
|
||||||
this.getUserItemHandler = getUserItemHandler;
|
|
||||||
this.getUserLoginBonusHandler = getUserLoginBonusHandler;
|
|
||||||
this.getUserMapHandler = getUserMapHandler;
|
|
||||||
this.getUserMusicHandler = getUserMusicHandler;
|
|
||||||
this.getUserOptionExHandler = getUserOptionExHandler;
|
|
||||||
this.getUserOptionHandler = getUserOptionHandler;
|
|
||||||
this.getUserPreviewHandler = getUserPreviewHandler;
|
|
||||||
this.getUserRecentRatingHandler = getUserRecentRatingHandler;
|
|
||||||
this.getUserRegionHandler = getUserRegionHandler;
|
|
||||||
this.getUserRivalDataHandler = getUserRivalDataHandler;
|
|
||||||
this.getUserRivalMusicHandler = getUserRivalMusicHandler;
|
|
||||||
this.getUserTeamHandler = getUserTeamHandler;
|
|
||||||
this.upsertClientBookkeepingHandler = upsertClientBookkeepingHandler;
|
|
||||||
this.upsertClientDevelopHandler = upsertClientDevelopHandler;
|
|
||||||
this.upsertClientErrorHandler = upsertClientErrorHandler;
|
|
||||||
this.upsertClientSettingHandler = upsertClientSettingHandler;
|
|
||||||
this.upsertClientTestmodeHandler = upsertClientTestmodeHandler;
|
|
||||||
this.upsertUserAllHandler = upsertUserAllHandler;
|
|
||||||
this.upsertUserChargelogHandler = upsertUserChargelogHandler;
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping("GameLoginApi")
|
@PostMapping("GameLoginApi")
|
||||||
String gameLogin(@ModelAttribute Map<String, Object> request) throws JsonProcessingException {
|
String gameLogin(@ModelAttribute Map<String, Object> request) throws JsonProcessingException {
|
||||||
|
|||||||
@ -1,10 +0,0 @@
|
|||||||
package icu.samnyan.aqua.sega.chunithm.handler.impl;
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author samnyan (privateamusement@protonmail.com)
|
|
||||||
*/
|
|
||||||
@Component
|
|
||||||
public class UpsertClientBookkeepingHandler {
|
|
||||||
}
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
package icu.samnyan.aqua.sega.chunithm.handler.impl;
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author samnyan (privateamusement@protonmail.com)
|
|
||||||
*/
|
|
||||||
@Component
|
|
||||||
public class UpsertClientDevelopHandler {
|
|
||||||
}
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
package icu.samnyan.aqua.sega.chunithm.handler.impl;
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author samnyan (privateamusement@protonmail.com)
|
|
||||||
*/
|
|
||||||
@Component
|
|
||||||
public class UpsertClientErrorHandler {
|
|
||||||
}
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
package icu.samnyan.aqua.sega.chunithm.handler.impl;
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author samnyan (privateamusement@protonmail.com)
|
|
||||||
*/
|
|
||||||
@Component
|
|
||||||
public class UpsertClientTestmodeHandler {
|
|
||||||
}
|
|
||||||
@ -3,6 +3,7 @@ package icu.samnyan.aqua.sega.chusan.controller;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
import icu.samnyan.aqua.sega.chusan.handler.impl.*;
|
import icu.samnyan.aqua.sega.chusan.handler.impl.*;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@ -13,6 +14,7 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping({"/g/chu3/{version}/ChuniServlet", "/g/chu3/{version}"})
|
@RequestMapping({"/g/chu3/{version}/ChuniServlet", "/g/chu3/{version}"})
|
||||||
|
@AllArgsConstructor
|
||||||
public class ChusanServletController {
|
public class ChusanServletController {
|
||||||
|
|
||||||
private final GameLoginHandler gameLoginHandler;
|
private final GameLoginHandler gameLoginHandler;
|
||||||
@ -64,81 +66,6 @@ public class ChusanServletController {
|
|||||||
private final GetMatchingStateHandler getMatchingStateHandler;
|
private final GetMatchingStateHandler getMatchingStateHandler;
|
||||||
private final RemoveMatchingMemberHandler removeMatchingMemberHandler;
|
private final RemoveMatchingMemberHandler removeMatchingMemberHandler;
|
||||||
|
|
||||||
@Autowired
|
|
||||||
public ChusanServletController(GameLoginHandler gameLoginHandler, GameLogoutHandler gameLogoutHandler,
|
|
||||||
GetGameChargeHandler getGameChargeHandler, GetGameEventHandler getGameEventHandler,
|
|
||||||
GetGameIdlistHandler getGameIdlistHandler, GetGameRankingHandler getGameRankingHandler,
|
|
||||||
GetGameSettingHandler getGameSettingHandler, GetTeamCourseRuleHandler getTeamCourseRuleHandler,
|
|
||||||
GetTeamCourseSettingHandler getTeamCourseSettingHandler, GetUserActivityHandler getUserActivityHandler,
|
|
||||||
GetUserCharacterHandler getUserCharacterHandler, GetUserChargeHandler getUserChargeHandler,
|
|
||||||
GetUserCourseHandler getUserCourseHandler, GetUserDataHandler getUserDataHandler,
|
|
||||||
GetUserDuelHandler getUserDuelHandler, GetUserFavoriteItemHandler getUserFavoriteItemHandler,
|
|
||||||
GetUserItemHandler getUserItemHandler, GetUserLoginBonusHandler getUserLoginBonusHandler,
|
|
||||||
GetUserMapAreaHandler getUserMapAreaHandler, GetUserMusicHandler getUserMusicHandler,
|
|
||||||
GetUserOptionHandler getUserOptionHandler, GetUserPreviewHandler getUserPreviewHandler,
|
|
||||||
GetUserRecentRatingHandler getUserRecentRatingHandler, GetUserRegionHandler getUserRegionHandler,
|
|
||||||
GetUserRivalDataHandler getUserRivalDataHandler, GetUserRivalMusicHandler getUserRivalMusicHandler,
|
|
||||||
GetUserTeamHandler getUserTeamHandler, UpsertUserAllHandler upsertUserAllHandler,
|
|
||||||
UpsertUserChargelogHandler upsertUserChargelogHandler, GetUserSymbolChatSettingHandler getUserSymbolChatSettingHandler,
|
|
||||||
GetUserNetBattleDataHandler getUserNetBattleDataHandler, GetGameGachaHandler getGameGachaHandler,
|
|
||||||
GetGameGachaCardByIdHandler getGameGachaCardByIdHandler, GetUserCardPrintErrorHandler getUserCardPrintErrorHandler,
|
|
||||||
CMGetUserPreviewHandler cmGetUserPreviewHandler, CMGetUserDataHandler cmGetUserDataHandler,
|
|
||||||
CMGetUserCharacterHandler cmGetUserCharacterHandler, GetUserGachaHandler getUserGachaHandler,
|
|
||||||
GetUserPrintedCardHandler getUserPrintedCardHandler, CMGetUserItemHandler cmGetUserItemHandler,
|
|
||||||
RollGachaHandler rollGachaHandler, CMUpsertUserGachaHandler cmUpsertUserGachaHandler,
|
|
||||||
CMUpsertUserPrintSubtractHandler cmUpsertUserPrintSubtractHandler, CMUpsertUserPrintCancelHandler cmUpsertUserPrintCancelHandler,
|
|
||||||
BeginMatchingHandler beginMatchingHandler, EndMatchingHandler endMatchingHandler,
|
|
||||||
GetMatchingStateHandler getMatchingStateHandler, RemoveMatchingMemberHandler removeMatchingMemberHandler) {
|
|
||||||
this.gameLoginHandler = gameLoginHandler;
|
|
||||||
this.gameLogoutHandler = gameLogoutHandler;
|
|
||||||
this.getGameChargeHandler = getGameChargeHandler;
|
|
||||||
this.getGameEventHandler = getGameEventHandler;
|
|
||||||
this.getGameIdlistHandler = getGameIdlistHandler;
|
|
||||||
this.getGameRankingHandler = getGameRankingHandler;
|
|
||||||
this.getGameSettingHandler = getGameSettingHandler;
|
|
||||||
this.getTeamCourseRuleHandler = getTeamCourseRuleHandler;
|
|
||||||
this.getTeamCourseSettingHandler = getTeamCourseSettingHandler;
|
|
||||||
this.getUserActivityHandler = getUserActivityHandler;
|
|
||||||
this.getUserCharacterHandler = getUserCharacterHandler;
|
|
||||||
this.getUserChargeHandler = getUserChargeHandler;
|
|
||||||
this.getUserCourseHandler = getUserCourseHandler;
|
|
||||||
this.getUserDataHandler = getUserDataHandler;
|
|
||||||
this.getUserDuelHandler = getUserDuelHandler;
|
|
||||||
this.getUserFavoriteItemHandler = getUserFavoriteItemHandler;
|
|
||||||
this.getUserItemHandler = getUserItemHandler;
|
|
||||||
this.getUserLoginBonusHandler = getUserLoginBonusHandler;
|
|
||||||
this.getUserMapAreaHandler = getUserMapAreaHandler;
|
|
||||||
this.getUserMusicHandler = getUserMusicHandler;
|
|
||||||
this.getUserOptionHandler = getUserOptionHandler;
|
|
||||||
this.getUserPreviewHandler = getUserPreviewHandler;
|
|
||||||
this.getUserRecentRatingHandler = getUserRecentRatingHandler;
|
|
||||||
this.getUserRegionHandler = getUserRegionHandler;
|
|
||||||
this.getUserRivalDataHandler = getUserRivalDataHandler;
|
|
||||||
this.getUserRivalMusicHandler = getUserRivalMusicHandler;
|
|
||||||
this.getUserTeamHandler = getUserTeamHandler;
|
|
||||||
this.upsertUserAllHandler = upsertUserAllHandler;
|
|
||||||
this.upsertUserChargelogHandler = upsertUserChargelogHandler;
|
|
||||||
this.getUserSymbolChatSettingHandler = getUserSymbolChatSettingHandler;
|
|
||||||
this.getUserNetBattleDataHandler = getUserNetBattleDataHandler;
|
|
||||||
this.getGameGachaHandler = getGameGachaHandler;
|
|
||||||
this.getGameGachaCardByIdHandler = getGameGachaCardByIdHandler;
|
|
||||||
this.getUserCardPrintErrorHandler = getUserCardPrintErrorHandler;
|
|
||||||
this.cmGetUserPreviewHandler = cmGetUserPreviewHandler;
|
|
||||||
this.cmGetUserDataHandler = cmGetUserDataHandler;
|
|
||||||
this.cmGetUserCharacterHandler = cmGetUserCharacterHandler;
|
|
||||||
this.getUserGachaHandler = getUserGachaHandler;
|
|
||||||
this.getUserPrintedCardHandler = getUserPrintedCardHandler;
|
|
||||||
this.cmGetUserItemHandler = cmGetUserItemHandler;
|
|
||||||
this.rollGachaHandler = rollGachaHandler;
|
|
||||||
this.cmUpsertUserGachaHandler = cmUpsertUserGachaHandler;
|
|
||||||
this.cmUpsertUserPrintSubtractHandler = cmUpsertUserPrintSubtractHandler;
|
|
||||||
this.cmUpsertUserPrintCancelHandler = cmUpsertUserPrintCancelHandler;
|
|
||||||
this.beginMatchingHandler = beginMatchingHandler;
|
|
||||||
this.endMatchingHandler = endMatchingHandler;
|
|
||||||
this.getMatchingStateHandler = getMatchingStateHandler;
|
|
||||||
this.removeMatchingMemberHandler = removeMatchingMemberHandler;
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping("GameLoginApi")
|
@PostMapping("GameLoginApi")
|
||||||
String gameLogin(@ModelAttribute Map<String, Object> request) throws JsonProcessingException {
|
String gameLogin(@ModelAttribute Map<String, Object> request) throws JsonProcessingException {
|
||||||
return gameLoginHandler.handle(request);
|
return gameLoginHandler.handle(request);
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package icu.samnyan.aqua.sega.maimai.controller;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
import icu.samnyan.aqua.sega.maimai.handler.impl.*;
|
import icu.samnyan.aqua.sega.maimai.handler.impl.*;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
@ -15,6 +16,7 @@ import jakarta.servlet.http.HttpServletRequest;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/g/mai")
|
@RequestMapping("/g/mai")
|
||||||
|
@AllArgsConstructor
|
||||||
public class MaimaiServletController {
|
public class MaimaiServletController {
|
||||||
|
|
||||||
private final GetGameEventHandler getGameEventHandler;
|
private final GetGameEventHandler getGameEventHandler;
|
||||||
@ -41,32 +43,6 @@ public class MaimaiServletController {
|
|||||||
private final UserLoginHandler userLoginHandler;
|
private final UserLoginHandler userLoginHandler;
|
||||||
private final UserLogoutHandler userLogoutHandler;
|
private final UserLogoutHandler userLogoutHandler;
|
||||||
|
|
||||||
public MaimaiServletController(GetGameEventHandler getGameEventHandler, GetGameRankingHandler getGameRankingHandler, GetGameSettingHandler getGameSettingHandler, GetTransferFriendHandler getTransferFriendHandler, GetUserActivityHandler getUserActivityHandler, GetUserBossHandler getUserBossHandler, GetUserCharacterHandler getUserCharacterHandler, GetUserCourseHandler getUserCourseHandler, GetUserDataHandler getUserDataHandler, GetUserGradeHandler getUserGradeHandler, GetUserItemHandler getUserItemHandler, GetUserMusicHandler getUserMusicHandler, GetUserOptionHandler getUserOptionHandler, GetUserPresentEventHandler getUserPresentEventHandler, GetUserPresentHandler getUserPresentHandler, GetUserPreviewHandler getUserPreviewHandler, GetUserRecentRatingHandler getUserRecentRatingHandler, GetUserSurvivalHandler getUserSurvivalHandler, GetUserWebOptionHandler getUserWebOptionHandler, UpsertTransferHandler upsertTransferHandler, UpsertUserAllHandler upsertUserAllHandler, UserLoginHandler userLoginHandler, UserLogoutHandler userLogoutHandler) {
|
|
||||||
this.getGameEventHandler = getGameEventHandler;
|
|
||||||
this.getGameRankingHandler = getGameRankingHandler;
|
|
||||||
this.getGameSettingHandler = getGameSettingHandler;
|
|
||||||
this.getTransferFriendHandler = getTransferFriendHandler;
|
|
||||||
this.getUserActivityHandler = getUserActivityHandler;
|
|
||||||
this.getUserBossHandler = getUserBossHandler;
|
|
||||||
this.getUserCharacterHandler = getUserCharacterHandler;
|
|
||||||
this.getUserCourseHandler = getUserCourseHandler;
|
|
||||||
this.getUserDataHandler = getUserDataHandler;
|
|
||||||
this.getUserGradeHandler = getUserGradeHandler;
|
|
||||||
this.getUserItemHandler = getUserItemHandler;
|
|
||||||
this.getUserMusicHandler = getUserMusicHandler;
|
|
||||||
this.getUserOptionHandler = getUserOptionHandler;
|
|
||||||
this.getUserPresentEventHandler = getUserPresentEventHandler;
|
|
||||||
this.getUserPresentHandler = getUserPresentHandler;
|
|
||||||
this.getUserPreviewHandler = getUserPreviewHandler;
|
|
||||||
this.getUserRecentRatingHandler = getUserRecentRatingHandler;
|
|
||||||
this.getUserSurvivalHandler = getUserSurvivalHandler;
|
|
||||||
this.getUserWebOptionHandler = getUserWebOptionHandler;
|
|
||||||
this.upsertTransferHandler = upsertTransferHandler;
|
|
||||||
this.upsertUserAllHandler = upsertUserAllHandler;
|
|
||||||
this.userLoginHandler = userLoginHandler;
|
|
||||||
this.userLogoutHandler = userLogoutHandler;
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping("GetGameEventApi")
|
@PostMapping("GetGameEventApi")
|
||||||
public String getGameEvent(@ModelAttribute Map<String, Object> request) throws JsonProcessingException {
|
public String getGameEvent(@ModelAttribute Map<String, Object> request) throws JsonProcessingException {
|
||||||
return getGameEventHandler.handle(request);
|
return getGameEventHandler.handle(request);
|
||||||
|
|||||||
@ -177,24 +177,24 @@ public class Maimai2ServletController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("UploadUserPhotoApi")
|
@PostMapping("UploadUserPhotoApi")
|
||||||
public String uploadUserPhotoHandler(@ModelAttribute Map<String, Object> request) throws JsonProcessingException {
|
public Object uploadUserPhotoHandler(@ModelAttribute Map<String, Object> request) throws JsonProcessingException {
|
||||||
return uploadUserPhotoHandler.handle(request);
|
return uploadUserPhotoHandler.handle(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("UploadUserPlaylogApi")
|
@PostMapping("UploadUserPlaylogApi")
|
||||||
public String uploadUserPlaylogHandler(@ModelAttribute Map<String, Object> request) throws JsonProcessingException {
|
public Object uploadUserPlaylogHandler(@ModelAttribute Map<String, Object> request) throws JsonProcessingException {
|
||||||
return uploadUserPlaylogHandler.handle(request);
|
return uploadUserPlaylogHandler.handle(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
@CrossOrigin // enable cors because aqua-viewer also use it.
|
@CrossOrigin // enable cors because aqua-viewer also use it.
|
||||||
@PostMapping("UploadUserPortraitApi")
|
@PostMapping("UploadUserPortraitApi")
|
||||||
public String uploadUserPortraitHandler(@ModelAttribute Map<String, Object> request)
|
public Object uploadUserPortraitHandler(@ModelAttribute Map<String, Object> request)
|
||||||
throws JsonProcessingException {
|
throws JsonProcessingException {
|
||||||
return uploadUserPortraitHandler.handle(request);
|
return uploadUserPortraitHandler.handle(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("UserLoginApi")
|
@PostMapping("UserLoginApi")
|
||||||
public String userLoginHandler(@ModelAttribute Map<String, Object> request) throws JsonProcessingException {
|
public Object userLoginHandler(@ModelAttribute Map<String, Object> request) throws JsonProcessingException {
|
||||||
return userLoginHandler.handle(request);
|
return userLoginHandler.handle(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3,6 +3,7 @@ package icu.samnyan.aqua.sega.ongeki.controller;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
import icu.samnyan.aqua.sega.ongeki.handler.impl.*;
|
import icu.samnyan.aqua.sega.ongeki.handler.impl.*;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
@ -16,6 +17,7 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/g/ongeki")
|
@RequestMapping("/g/ongeki")
|
||||||
|
@AllArgsConstructor
|
||||||
public class OngekiController {
|
public class OngekiController {
|
||||||
|
|
||||||
private final GetGameEventHandler getGameEventHandler;
|
private final GetGameEventHandler getGameEventHandler;
|
||||||
@ -65,56 +67,6 @@ public class OngekiController {
|
|||||||
private final GetClientTestmodeHandler getClientTestmodeHandler;
|
private final GetClientTestmodeHandler getClientTestmodeHandler;
|
||||||
private final GetGameMusicReleaseStateHandler getGameMusicReleaseStateHandler;
|
private final GetGameMusicReleaseStateHandler getGameMusicReleaseStateHandler;
|
||||||
|
|
||||||
@Autowired
|
|
||||||
public OngekiController(GetGameEventHandler getGameEventHandler, GetGameIdlistHandler getGameIdlistHandler, GetGameMessageHandler getGameMessageHandler, GetGamePointHandler getGamePointHandler, GetGamePresentHandler getGamePresentHandler, GetGameRankingHandler getGameRankingHandler, GetGameRewardHandler getGameRewardHandler, GetGameSettingHandler getGameSettingHandler, GetUserActivityHandler getUserActivityHandler, GetUserBossHandler getUserBossHandler, GetUserBpBaseHandler getUserBpBaseHandler, GetUserCardHandler getUserCardHandler, GetUserChapterHandler getUserChapterHandler, GetUserCharacterHandler getUserCharacterHandler, GetUserDataHandler getUserDataHandler, GetUserDeckByKeyHandler getUserDeckByKeyHandler, GetUserEventPointHandler getUserEventPointHandler, GetUserEventRankingHandler getUserEventRankingHandler, GetUserItemHandler getUserItemHandler, GetUserLoginBonusHandler getUserLoginBonusHandler, GetUserMissionPointHandler getUserMissionPointHandler, GetUserMusicHandler getUserMusicHandler, GetUserMusicItemHandler getUserMusicItemHandler, GetUserOptionHandler getUserOptionHandler, GetUserPreviewHandler getUserPreviewHandler, GetUserRatinglogListHandler getUserRatinglogListHandler, GetUserRecentRatingHandler getUserRecentRatingHandler, GetUserRegionHandler getUserRegionHandler, GetUserRivalHandler getUserRivalHandler, GetUserRivalMusicHandler getUserRivalMusicHandler, GetUserScenarioHandler getUserScenarioHandler, GetUserStoryHandler getUserStoryHandler, GetUserTechCountHandler getUserTechCountHandler, GetUserTrainingRoomByKeyHandler getUserTrainingRoomByKeyHandler, UpsertUserAllHandler upsertUserAllHandler, GetGameTechMusicHandler getGameTechMusicHandler, GetUserTechEventHandler getUserTechEventHandler, GetUserTechEventRankingHandler getUserTechEventRankingHandler, GetUserEventMusicHandler getUserEventMusicHandler, GetUserTradeItemHandler getUserTradeItemHandler, GetUserKopHandler getUserKopHandler, GetClientBookkeepingHandler getClientBookkeepingHandler, GetClientTestmodeHandler getClientTestmodeHandler, GetGameMusicReleaseStateHandler getGameMusicReleaseStateHandler, GetUserMemoryChapterHandler getUserMemoryChapterHandler, GetUserRivalDataHandler getUserRivalDataHandler) {
|
|
||||||
this.getGameEventHandler = getGameEventHandler;
|
|
||||||
this.getGameIdlistHandler = getGameIdlistHandler;
|
|
||||||
this.getGameMessageHandler = getGameMessageHandler;
|
|
||||||
this.getGamePointHandler = getGamePointHandler;
|
|
||||||
this.getGamePresentHandler = getGamePresentHandler;
|
|
||||||
this.getGameRankingHandler = getGameRankingHandler;
|
|
||||||
this.getGameRewardHandler = getGameRewardHandler;
|
|
||||||
this.getGameSettingHandler = getGameSettingHandler;
|
|
||||||
this.getUserActivityHandler = getUserActivityHandler;
|
|
||||||
this.getUserBossHandler = getUserBossHandler;
|
|
||||||
this.getUserBpBaseHandler = getUserBpBaseHandler;
|
|
||||||
this.getUserCardHandler = getUserCardHandler;
|
|
||||||
this.getUserChapterHandler = getUserChapterHandler;
|
|
||||||
this.getUserMemoryChapterHandler = getUserMemoryChapterHandler;
|
|
||||||
this.getUserCharacterHandler = getUserCharacterHandler;
|
|
||||||
this.getUserDataHandler = getUserDataHandler;
|
|
||||||
this.getUserDeckByKeyHandler = getUserDeckByKeyHandler;
|
|
||||||
this.getUserEventPointHandler = getUserEventPointHandler;
|
|
||||||
this.getUserEventRankingHandler = getUserEventRankingHandler;
|
|
||||||
this.getUserItemHandler = getUserItemHandler;
|
|
||||||
this.getUserLoginBonusHandler = getUserLoginBonusHandler;
|
|
||||||
this.getUserMissionPointHandler = getUserMissionPointHandler;
|
|
||||||
this.getUserMusicHandler = getUserMusicHandler;
|
|
||||||
this.getUserMusicItemHandler = getUserMusicItemHandler;
|
|
||||||
this.getUserOptionHandler = getUserOptionHandler;
|
|
||||||
this.getUserPreviewHandler = getUserPreviewHandler;
|
|
||||||
this.getUserRatinglogListHandler = getUserRatinglogListHandler;
|
|
||||||
this.getUserRecentRatingHandler = getUserRecentRatingHandler;
|
|
||||||
this.getUserRegionHandler = getUserRegionHandler;
|
|
||||||
this.getUserRivalHandler = getUserRivalHandler;
|
|
||||||
this.getUserRivalMusicHandler = getUserRivalMusicHandler;
|
|
||||||
this.getUserRivalDataHandler = getUserRivalDataHandler;
|
|
||||||
this.getUserScenarioHandler = getUserScenarioHandler;
|
|
||||||
this.getUserStoryHandler = getUserStoryHandler;
|
|
||||||
this.getUserTechCountHandler = getUserTechCountHandler;
|
|
||||||
this.getUserTrainingRoomByKeyHandler = getUserTrainingRoomByKeyHandler;
|
|
||||||
this.upsertUserAllHandler = upsertUserAllHandler;
|
|
||||||
this.getGameTechMusicHandler = getGameTechMusicHandler;
|
|
||||||
this.getUserTechEventHandler = getUserTechEventHandler;
|
|
||||||
this.getUserTechEventRankingHandler = getUserTechEventRankingHandler;
|
|
||||||
this.getUserEventMusicHandler = getUserEventMusicHandler;
|
|
||||||
this.getUserTradeItemHandler = getUserTradeItemHandler;
|
|
||||||
this.getUserKopHandler = getUserKopHandler;
|
|
||||||
this.getClientBookkeepingHandler = getClientBookkeepingHandler;
|
|
||||||
this.getClientTestmodeHandler = getClientTestmodeHandler;
|
|
||||||
this.getGameMusicReleaseStateHandler = getGameMusicReleaseStateHandler;
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping("ExtendLockTimeApi")
|
@PostMapping("ExtendLockTimeApi")
|
||||||
public String extendLockTime(@ModelAttribute Map<String, Object> request) {
|
public String extendLockTime(@ModelAttribute Map<String, Object> request) {
|
||||||
return "{\"returnCode\":1,\"apiName\":\"extendLockTime\"}";
|
return "{\"returnCode\":1,\"apiName\":\"extendLockTime\"}";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user