-
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
앰프 매물 수정 api 구현
- Loading branch information
Showing
6 changed files
with
251 additions
and
5 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
...n/java/com/ajou/hertz/domain/instrument/amplifier/dto/request/AmplifierUpdateRequest.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,57 @@ | ||
package com.ajou.hertz.domain.instrument.amplifier.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.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.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 AmplifierUpdateRequest extends InstrumentUpdateRequest { | ||
|
||
@NotNull | ||
private AmplifierType type; | ||
|
||
@NotNull | ||
private AmplifierBrand brand; | ||
|
||
@NotNull | ||
private AmplifierUsage usage; | ||
|
||
private AmplifierUpdateRequest( | ||
@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 AmplifierType type, | ||
@Nullable AmplifierBrand brand, | ||
@Nullable AmplifierUsage usage | ||
) { | ||
super(title, progressStatus, tradeAddress, qualityStatus, price, hasAnomaly, description, | ||
deletedImageIds, newImages, deletedHashtagIds, newHashtags); | ||
this.type = type; | ||
this.brand = brand; | ||
this.usage = usage; | ||
} | ||
} |
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