-
Notifications
You must be signed in to change notification settings - Fork 0
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
#275 [feat] 디자이너 정보 수정하는 기능
- Loading branch information
Showing
7 changed files
with
116 additions
and
22 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
43 changes: 43 additions & 0 deletions
43
src/main/java/com/moddy/server/controller/designer/dto/request/DesignerUpdateRequest.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,43 @@ | ||
package com.moddy.server.controller.designer.dto.request; | ||
|
||
import com.moddy.server.common.validation.unique_dayofweek.UniqueDayOfWeek; | ||
import com.moddy.server.controller.designer.dto.HairShopDto; | ||
import com.moddy.server.controller.designer.dto.PortfolioDto; | ||
import com.moddy.server.domain.day_off.DayOfWeek; | ||
import com.moddy.server.domain.designer.HairShop; | ||
import com.moddy.server.domain.designer.Portfolio; | ||
import com.moddy.server.domain.user.Gender; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.persistence.EnumType; | ||
import jakarta.persistence.Enumerated; | ||
import jakarta.validation.Valid; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Size; | ||
|
||
import java.util.List; | ||
|
||
@NotNull | ||
public record DesignerUpdateRequest( | ||
@Schema(example = "introduction") | ||
@NotNull | ||
@Size(min = 0, max = 200, message = "introduction은 1~200 글자수 사이의 글자입니다.") | ||
String introduction, | ||
@Schema(example = "안현주") | ||
@NotNull | ||
@Size(min = 0, max = 5, message = "name은 1~5 글자수 사이의 글자입니다.") | ||
String name, | ||
@Schema(example = "MALE") | ||
@NotNull | ||
@Enumerated(EnumType.STRING) | ||
Gender gender, | ||
@Valid | ||
HairShopDto hairShop, | ||
@UniqueDayOfWeek | ||
List<DayOfWeek> dayOffs, | ||
@Valid | ||
PortfolioDto portfolio, | ||
@Schema(example = "http://.kakao") | ||
@NotNull | ||
String kakaoOpenChatUrl | ||
) { | ||
} |
4 changes: 0 additions & 4 deletions
4
src/main/java/com/moddy/server/controller/designer/dto/request/OfferImageUrlRequestDto.java
This file was deleted.
Oops, something went wrong.
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