-
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
8 changed files
with
254 additions
and
2 deletions.
There are no files selected for viewing
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
51 changes: 51 additions & 0 deletions
51
...ain/java/com/ajou/hertz/domain/instrument/effector/dto/request/EffectorUpdateRequest.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,51 @@ | ||
package com.ajou.hertz.domain.instrument.effector.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.constant.InstrumentProgressStatus; | ||
import com.ajou.hertz.domain.instrument.dto.request.InstrumentUpdateRequest; | ||
import com.ajou.hertz.domain.instrument.effector.constant.EffectorFeature; | ||
import com.ajou.hertz.domain.instrument.effector.constant.EffectorType; | ||
|
||
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 EffectorUpdateRequest extends InstrumentUpdateRequest { | ||
|
||
@NotNull | ||
private EffectorType type; | ||
|
||
@NotNull | ||
private EffectorFeature feature; | ||
|
||
private EffectorUpdateRequest( | ||
@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 EffectorType type, | ||
@Nullable EffectorFeature feature | ||
) { | ||
super(title, progressStatus, tradeAddress, qualityStatus, price, hasAnomaly, description, | ||
deletedImageIds, newImages, deletedHashtagIds, newHashtags); | ||
this.type = type; | ||
this.feature = feature; | ||
} | ||
} |
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