-
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.
- Loading branch information
Showing
4 changed files
with
122 additions
and
20 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
...ava/com/ajou/hertz/domain/instrument/bass_guitar/dto/request/BassGuitarUpdateRequest.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,59 @@ | ||
package com.ajou.hertz.domain.instrument.bass_guitar.dto.request; | ||
|
||
import com.ajou.hertz.common.dto.request.AddressRequest; | ||
import com.ajou.hertz.domain.instrument.bass_guitar.constant.BassGuitarBrand; | ||
import com.ajou.hertz.domain.instrument.bass_guitar.constant.BassGuitarPickUp; | ||
import com.ajou.hertz.domain.instrument.bass_guitar.constant.BassGuitarPreAmplifier; | ||
import com.ajou.hertz.domain.instrument.constant.GuitarColor; | ||
import com.ajou.hertz.domain.instrument.constant.InstrumentProgressStatus; | ||
import com.ajou.hertz.domain.instrument.dto.request.InstrumentUpdateRequest; | ||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import org.springframework.lang.Nullable; | ||
import org.springframework.web.multipart.MultipartFile; | ||
|
||
import java.util.List; | ||
|
||
@NoArgsConstructor(access = AccessLevel.PRIVATE) | ||
@Setter | ||
@Getter | ||
public class BassGuitarUpdateRequest extends InstrumentUpdateRequest { | ||
|
||
@Nullable | ||
private BassGuitarBrand brand; | ||
|
||
@Nullable | ||
private BassGuitarPickUp pickUp; | ||
|
||
@Nullable | ||
private BassGuitarPreAmplifier preAmplifier; | ||
|
||
@Nullable | ||
private GuitarColor color; | ||
|
||
public BassGuitarUpdateRequest( | ||
@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 BassGuitarBrand brand, | ||
@Nullable BassGuitarPickUp pickUp, | ||
@Nullable BassGuitarPreAmplifier preAmplifier, | ||
@Nullable GuitarColor color | ||
) { | ||
super(title, progressStatus, tradeAddress, qualityStatus, price, hasAnomaly, description, deletedImageIds, newImages, deletedHashtagIds, newHashtags); | ||
this.brand = brand; | ||
this.pickUp = pickUp; | ||
this.preAmplifier = preAmplifier; | ||
this.color = color; | ||
} | ||
} |
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