-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…guitar 어쿠스틱 & 클래식 기타 매물 수정 api 구현
- Loading branch information
Showing
7 changed files
with
268 additions
and
0 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
...rument/acoustic_and_classic_guitar/dto/request/AcousticAndClassicGuitarUpdateRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package com.ajou.hertz.domain.instrument.acoustic_and_classic_guitar.dto.request; | ||
|
||
import java.util.List; | ||
|
||
import org.springframework.lang.Nullable; | ||
import org.springframework.web.multipart.MultipartFile; | ||
|
||
import com.ajou.hertz.common.dto.request.AddressRequest; | ||
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.InstrumentUpdateRequest; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
@NoArgsConstructor(access = AccessLevel.PRIVATE) | ||
@Setter | ||
@Getter | ||
public class AcousticAndClassicGuitarUpdateRequest extends InstrumentUpdateRequest { | ||
|
||
@Nullable | ||
private AcousticAndClassicGuitarBrand brand; | ||
|
||
@Nullable | ||
private AcousticAndClassicGuitarModel model; | ||
|
||
@NotNull | ||
private AcousticAndClassicGuitarWood wood; | ||
|
||
@NotNull | ||
private AcousticAndClassicGuitarPickUp pickUp; | ||
|
||
private AcousticAndClassicGuitarUpdateRequest( | ||
@Nullable String title, | ||
@Nullable InstrumentProgressStatus progressStatus, | ||
@Nullable AddressRequest tradeAddress, | ||
@Nullable Short qualityStatus, | ||
@Nullable Integer price, | ||
@Nullable Boolean hasAnomaly, | ||
@Nullable String description, | ||
@Nullable List<Long> deletedImageIds, | ||
@Nullable List<MultipartFile> newImages, | ||
@Nullable List<Long> deletedHashtagIds, | ||
@Nullable List<String> newHashtags, | ||
@Nullable AcousticAndClassicGuitarBrand brand, | ||
@Nullable AcousticAndClassicGuitarModel model, | ||
@Nullable AcousticAndClassicGuitarWood wood, | ||
@Nullable AcousticAndClassicGuitarPickUp pickUp | ||
) { | ||
super(title, progressStatus, tradeAddress, qualityStatus, price, hasAnomaly, description, | ||
deletedImageIds, newImages, deletedHashtagIds, newHashtags); | ||
this.brand = brand; | ||
this.model = model; | ||
this.wood = wood; | ||
this.pickUp = pickUp; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters