diff --git a/src/main/java/com/artistack/instrument/service/InstrumentService.java b/src/main/java/com/artistack/instrument/service/InstrumentService.java index 61ade69..d721c23 100644 --- a/src/main/java/com/artistack/instrument/service/InstrumentService.java +++ b/src/main/java/com/artistack/instrument/service/InstrumentService.java @@ -32,17 +32,22 @@ public class InstrumentService { private final UserInstrumentRepository userInstrumentRepository; private final ProjectInstrumentRepository projectInstrumentRepository; - @PostConstruct - public void initialize() { - List names = List.of("보컬", "피아노", "드럼", "기타", "베이스", "기타"); - List imgUrls = List.of("https://...", "https://...", "https://...", "https://...", "https://...", - "https://..."); - - for (int i = 1; i < names.size(); i++) { - instrumentRepository.save( - Instrument.builder().id((long) i).name(names.get(i)).imgUrl(imgUrls.get(i)).build()); - } - } +// @PostConstruct +// public void initialize() { +// List names = List.of("피아노", "기타", "베이스", "드럼", "보컬", "그외 악기"); +// List imgUrls = List.of( +// "https://artistack-bucket.s3.ap-northeast-2.amazonaws.com/instrument/piano300*300.png", +// "https://artistack-bucket.s3.ap-northeast-2.amazonaws.com/instrument/guitar300*300.png", +// "https://artistack-bucket.s3.ap-northeast-2.amazonaws.com/instrument/base300*300.png", +// "https://artistack-bucket.s3.ap-northeast-2.amazonaws.com/instrument/drum300*300.png", +// "https://artistack-bucket.s3.ap-northeast-2.amazonaws.com/instrument/vocal300*300.png", +// "https://artistack-bucket.s3.ap-northeast-2.amazonaws.com/instrument/etc300*300.png"); +// +// for (int i = 1; i < names.size(); i++) { +// instrumentRepository.save( +// Instrument.builder().id((long) i).name(names.get(i)).imgUrl(imgUrls.get(i)).build()); +// } +// } public List getAll() { return instrumentRepository.findAll().stream().map(InstrumentDto::response).collect(Collectors.toList());