[ongeki] Add summer events

This commit is contained in:
samnyan
2020-08-23 15:55:38 +09:00
parent 93d80e9439
commit 42827d1ed7
3 changed files with 486 additions and 28 deletions

View File

@@ -2,9 +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.model.gamedata.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@@ -53,30 +51,30 @@ public class ApiOngekiGameDataController {
public List<GameSkill> getSkillList() {
return gameSkillRepository.findAll();
}
//
// @PostMapping("cardList")
// public List<GameCard> getCardList(@RequestBody List<GameCard> req) {
// return gameCardRepository.saveAll(req);
// }
//
// @PostMapping("charaList")
// public List<GameChara> getCharaList(@RequestBody List<GameChara> req) {
// return gameCharaRepository.saveAll(req);
// }
//
// @PostMapping("eventList")
// public List<GameEvent> getEventList(@RequestBody List<GameEvent> req) {
// return gameEventRepository.saveAll(req);
// }
//
// @PostMapping("musicList")
// public List<GameMusic> getMusicList(@RequestBody List<GameMusic> req) {
// return gameMusicRepository.saveAll(req);
// }
//
// @PostMapping("skillList")
// public List<GameSkill> getSkillList(@RequestBody List<GameSkill> req) {
// return gameSkillRepository.saveAll(req);
// }
@PostMapping("cardList")
public List<GameCard> getCardList(@RequestBody List<GameCard> req) {
return gameCardRepository.saveAll(req);
}
@PostMapping("charaList")
public List<GameChara> getCharaList(@RequestBody List<GameChara> req) {
return gameCharaRepository.saveAll(req);
}
@PostMapping("eventList")
public List<GameEvent> getEventList(@RequestBody List<GameEvent> req) {
return gameEventRepository.saveAll(req);
}
@PostMapping("musicList")
public List<GameMusic> getMusicList(@RequestBody List<GameMusic> req) {
return gameMusicRepository.saveAll(req);
}
@PostMapping("skillList")
public List<GameSkill> getSkillList(@RequestBody List<GameSkill> req) {
return gameSkillRepository.saveAll(req);
}
}