Skip to content

Commit

Permalink
Merge pull request #91 from Ajou-Hertz/feature/#90-refactor-instrumen…
Browse files Browse the repository at this point in the history
…t-package-structure

Instrument domain에 대한 package structure refactoring
  • Loading branch information
tinon1004 authored Mar 23, 2024
2 parents c454d52 + e193d49 commit 9756df4
Show file tree
Hide file tree
Showing 66 changed files with 500 additions and 450 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.ajou.hertz.domain.instrument.constant;
package com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant;

import static com.ajou.hertz.domain.instrument.constant.ProductOrigin.*;

import com.ajou.hertz.domain.instrument.constant.ProductOrigin;

import lombok.AllArgsConstructor;

@AllArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ajou.hertz.domain.instrument.constant;
package com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant;

public enum AcousticAndClassicGuitarModel {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ajou.hertz.domain.instrument.constant;
package com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant;

import lombok.AllArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ajou.hertz.domain.instrument.constant;
package com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant;

public enum AcousticAndClassicGuitarWood {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
package com.ajou.hertz.domain.instrument.dto;
package com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.dto;

import java.util.List;

import com.ajou.hertz.common.dto.AddressDto;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarBrand;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarModel;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarPickUp;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarWood;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarBrand;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarModel;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarPickUp;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarWood;
import com.ajou.hertz.domain.instrument.constant.InstrumentCategory;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.entity.AcousticAndClassicGuitar;
import com.ajou.hertz.domain.instrument.dto.InstrumentDto;
import com.ajou.hertz.domain.instrument.dto.InstrumentImageDto;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.entity.AcousticAndClassicGuitar;
import com.ajou.hertz.domain.user.dto.UserDto;

import lombok.AccessLevel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package com.ajou.hertz.domain.instrument.dto.request;
package com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.dto.request;

import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarBrand;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarModel;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarPickUp;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarWood;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarBrand;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarModel;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarPickUp;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarWood;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.dto.request.InstrumentFilterConditions;

import lombok.AccessLevel;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package com.ajou.hertz.domain.instrument.dto.request;
package com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.dto.request;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.ajou.hertz.common.dto.request.AddressRequest;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarBrand;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarModel;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarPickUp;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarWood;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarBrand;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarModel;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarPickUp;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarWood;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.entity.AcousticAndClassicGuitar;
import com.ajou.hertz.domain.instrument.dto.request.CreateNewInstrumentRequest;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.entity.AcousticAndClassicGuitar;
import com.ajou.hertz.domain.user.entity.User;

import jakarta.validation.constraints.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
package com.ajou.hertz.domain.instrument.dto.response;
package com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.dto.response;

import java.util.List;

import com.ajou.hertz.common.dto.response.AddressResponse;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarBrand;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarModel;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarPickUp;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarWood;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarBrand;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarModel;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarPickUp;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarWood;
import com.ajou.hertz.domain.instrument.constant.InstrumentCategory;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.dto.AcousticAndClassicGuitarDto;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.dto.AcousticAndClassicGuitarDto;
import com.ajou.hertz.domain.instrument.dto.response.InstrumentImageResponse;
import com.ajou.hertz.domain.instrument.dto.response.InstrumentResponse;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AccessLevel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package com.ajou.hertz.domain.instrument.entity;
package com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.entity;

import com.ajou.hertz.common.entity.Address;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarBrand;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarModel;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarPickUp;
import com.ajou.hertz.domain.instrument.constant.AcousticAndClassicGuitarWood;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarBrand;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarModel;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarPickUp;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.constant.AcousticAndClassicGuitarWood;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.entity.Instrument;
import com.ajou.hertz.domain.user.entity.User;

import jakarta.persistence.Column;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.ajou.hertz.domain.instrument.strategy;
package com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.strategy;

import com.ajou.hertz.domain.instrument.dto.request.CreateNewAcousticAndClassicGuitarRequest;
import com.ajou.hertz.domain.instrument.entity.AcousticAndClassicGuitar;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.dto.request.CreateNewAcousticAndClassicGuitarRequest;
import com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.entity.AcousticAndClassicGuitar;
import com.ajou.hertz.domain.instrument.strategy.InstrumentCreationStrategy;
import com.ajou.hertz.domain.user.entity.User;

public class AcousticAndClassicGuitarCreationStrategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ajou.hertz.domain.instrument.constant;
package com.ajou.hertz.domain.instrument.amplifier.constant;

public enum AmplifierBrand {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.ajou.hertz.domain.instrument.amplifier.constant;

public enum AmplifierType {

GUITAR,
BASS
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ajou.hertz.domain.instrument.constant;
package com.ajou.hertz.domain.instrument.amplifier.constant;

import lombok.AllArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
package com.ajou.hertz.domain.instrument.dto;
package com.ajou.hertz.domain.instrument.amplifier.dto;

import java.util.List;

import com.ajou.hertz.common.dto.AddressDto;
import com.ajou.hertz.domain.instrument.constant.AmplifierBrand;
import com.ajou.hertz.domain.instrument.constant.AmplifierType;
import com.ajou.hertz.domain.instrument.constant.AmplifierUsage;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierBrand;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierType;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierUsage;
import com.ajou.hertz.domain.instrument.constant.InstrumentCategory;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.entity.Amplifier;
import com.ajou.hertz.domain.instrument.dto.InstrumentDto;
import com.ajou.hertz.domain.instrument.dto.InstrumentImageDto;
import com.ajou.hertz.domain.instrument.amplifier.entity.Amplifier;
import com.ajou.hertz.domain.user.dto.UserDto;

import lombok.AccessLevel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package com.ajou.hertz.domain.instrument.dto.request;
package com.ajou.hertz.domain.instrument.amplifier.dto.request;

import com.ajou.hertz.domain.instrument.constant.AmplifierBrand;
import com.ajou.hertz.domain.instrument.constant.AmplifierType;
import com.ajou.hertz.domain.instrument.constant.AmplifierUsage;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierBrand;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierType;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierUsage;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.dto.request.InstrumentFilterConditions;

import lombok.AccessLevel;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package com.ajou.hertz.domain.instrument.dto.request;
package com.ajou.hertz.domain.instrument.amplifier.dto.request;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.ajou.hertz.common.dto.request.AddressRequest;
import com.ajou.hertz.domain.instrument.constant.AmplifierBrand;
import com.ajou.hertz.domain.instrument.constant.AmplifierType;
import com.ajou.hertz.domain.instrument.constant.AmplifierUsage;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierBrand;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierType;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierUsage;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.entity.Amplifier;
import com.ajou.hertz.domain.instrument.dto.request.CreateNewInstrumentRequest;
import com.ajou.hertz.domain.instrument.amplifier.entity.Amplifier;
import com.ajou.hertz.domain.user.entity.User;

import jakarta.validation.constraints.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
package com.ajou.hertz.domain.instrument.dto.response;
package com.ajou.hertz.domain.instrument.amplifier.dto.response;

import java.util.List;

import com.ajou.hertz.common.dto.response.AddressResponse;
import com.ajou.hertz.domain.instrument.constant.AmplifierBrand;
import com.ajou.hertz.domain.instrument.constant.AmplifierType;
import com.ajou.hertz.domain.instrument.constant.AmplifierUsage;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierBrand;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierType;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierUsage;
import com.ajou.hertz.domain.instrument.constant.InstrumentCategory;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.dto.AmplifierDto;
import com.ajou.hertz.domain.instrument.amplifier.dto.AmplifierDto;
import com.ajou.hertz.domain.instrument.dto.response.InstrumentImageResponse;
import com.ajou.hertz.domain.instrument.dto.response.InstrumentResponse;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AccessLevel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package com.ajou.hertz.domain.instrument.entity;
package com.ajou.hertz.domain.instrument.amplifier.entity;

import com.ajou.hertz.common.entity.Address;
import com.ajou.hertz.domain.instrument.constant.AmplifierBrand;
import com.ajou.hertz.domain.instrument.constant.AmplifierType;
import com.ajou.hertz.domain.instrument.constant.AmplifierUsage;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierBrand;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierType;
import com.ajou.hertz.domain.instrument.amplifier.constant.AmplifierUsage;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.entity.Instrument;
import com.ajou.hertz.domain.user.entity.User;

import jakarta.persistence.Column;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.ajou.hertz.domain.instrument.strategy;
package com.ajou.hertz.domain.instrument.amplifier.strategy;

import com.ajou.hertz.domain.instrument.dto.request.CreateNewAmplifierRequest;
import com.ajou.hertz.domain.instrument.entity.Amplifier;
import com.ajou.hertz.domain.instrument.amplifier.dto.request.CreateNewAmplifierRequest;
import com.ajou.hertz.domain.instrument.amplifier.entity.Amplifier;
import com.ajou.hertz.domain.instrument.strategy.InstrumentCreationStrategy;
import com.ajou.hertz.domain.user.entity.User;

public class AmplifierCreationStrategy implements InstrumentCreationStrategy<Amplifier, CreateNewAmplifierRequest> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ajou.hertz.domain.instrument.constant;
package com.ajou.hertz.domain.instrument.audio_equipment.constant;

public enum AudioEquipmentType {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package com.ajou.hertz.domain.instrument.dto;
package com.ajou.hertz.domain.instrument.audio_equipment.dto;

import java.util.List;

import com.ajou.hertz.common.dto.AddressDto;
import com.ajou.hertz.domain.instrument.constant.AudioEquipmentType;
import com.ajou.hertz.domain.instrument.audio_equipment.constant.AudioEquipmentType;
import com.ajou.hertz.domain.instrument.constant.InstrumentCategory;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.entity.AudioEquipment;
import com.ajou.hertz.domain.instrument.dto.InstrumentDto;
import com.ajou.hertz.domain.instrument.dto.InstrumentImageDto;
import com.ajou.hertz.domain.instrument.audio_equipment.entity.AudioEquipment;
import com.ajou.hertz.domain.user.dto.UserDto;

import lombok.AccessLevel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.ajou.hertz.domain.instrument.dto.request;
package com.ajou.hertz.domain.instrument.audio_equipment.dto.request;

import com.ajou.hertz.domain.instrument.constant.AudioEquipmentType;
import com.ajou.hertz.domain.instrument.audio_equipment.constant.AudioEquipmentType;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.dto.request.InstrumentFilterConditions;

import lombok.AccessLevel;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.ajou.hertz.domain.instrument.dto.request;
package com.ajou.hertz.domain.instrument.audio_equipment.dto.request;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.ajou.hertz.common.dto.request.AddressRequest;
import com.ajou.hertz.domain.instrument.constant.AudioEquipmentType;
import com.ajou.hertz.domain.instrument.audio_equipment.constant.AudioEquipmentType;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.entity.AudioEquipment;
import com.ajou.hertz.domain.instrument.dto.request.CreateNewInstrumentRequest;
import com.ajou.hertz.domain.instrument.audio_equipment.entity.AudioEquipment;
import com.ajou.hertz.domain.user.entity.User;

import jakarta.validation.constraints.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package com.ajou.hertz.domain.instrument.dto.response;
package com.ajou.hertz.domain.instrument.audio_equipment.dto.response;

import java.util.List;

import com.ajou.hertz.common.dto.response.AddressResponse;
import com.ajou.hertz.domain.instrument.constant.AudioEquipmentType;
import com.ajou.hertz.domain.instrument.audio_equipment.constant.AudioEquipmentType;
import com.ajou.hertz.domain.instrument.constant.InstrumentCategory;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.dto.AudioEquipmentDto;
import com.ajou.hertz.domain.instrument.audio_equipment.dto.AudioEquipmentDto;
import com.ajou.hertz.domain.instrument.dto.response.InstrumentImageResponse;
import com.ajou.hertz.domain.instrument.dto.response.InstrumentResponse;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AccessLevel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package com.ajou.hertz.domain.instrument.entity;
package com.ajou.hertz.domain.instrument.audio_equipment.entity;

import com.ajou.hertz.common.entity.Address;
import com.ajou.hertz.domain.instrument.constant.AudioEquipmentType;
import com.ajou.hertz.domain.instrument.audio_equipment.constant.AudioEquipmentType;
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus;
import com.ajou.hertz.domain.instrument.entity.Instrument;
import com.ajou.hertz.domain.user.entity.User;

import jakarta.persistence.Column;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.ajou.hertz.domain.instrument.strategy;
package com.ajou.hertz.domain.instrument.audio_equipment.strategy;

import com.ajou.hertz.domain.instrument.dto.request.CreateNewAudioEquipmentRequest;
import com.ajou.hertz.domain.instrument.entity.AudioEquipment;
import com.ajou.hertz.domain.instrument.audio_equipment.dto.request.CreateNewAudioEquipmentRequest;
import com.ajou.hertz.domain.instrument.audio_equipment.entity.AudioEquipment;
import com.ajou.hertz.domain.instrument.strategy.InstrumentCreationStrategy;
import com.ajou.hertz.domain.user.entity.User;

public class AudioEquipmentCreationStrategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ajou.hertz.domain.instrument.constant;
package com.ajou.hertz.domain.instrument.bass_guitar.constant;

public enum BassGuitarBrand {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ajou.hertz.domain.instrument.constant;
package com.ajou.hertz.domain.instrument.bass_guitar.constant;

public enum BassGuitarPickUp {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ajou.hertz.domain.instrument.constant;
package com.ajou.hertz.domain.instrument.bass_guitar.constant;

public enum BassGuitarPreAmplifier {

Expand Down
Loading

0 comments on commit 9756df4

Please sign in to comment.