-
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
#274 [feat] 모델 마이페이지 수정 기능 구현
- Loading branch information
Showing
8 changed files
with
74 additions
and
7 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
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
32 changes: 32 additions & 0 deletions
32
src/main/java/com/moddy/server/controller/model/dto/request/ModelUpdateRequest.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,32 @@ | ||
package com.moddy.server.controller.model.dto.request; | ||
|
||
import com.moddy.server.common.validation.prefer_regions.ValidPreferRegions; | ||
import com.moddy.server.common.validation.year.ValidYear; | ||
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.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Size; | ||
|
||
import java.util.List; | ||
|
||
@NotNull | ||
public record ModelUpdateRequest( | ||
@Schema(description = "모델 회원가입 유저 이름 예시입니다.", example ="안현주") | ||
@Size(min = 0, max = 5, message = "name은 1~5 글자수 사이의 글자입니다.") | ||
String name, | ||
@Schema(description = "모델 회원가입 유저 나이 예시입니다.", example ="2000") | ||
@NotBlank | ||
@ValidYear | ||
String year, | ||
@Schema(description = "모델 회원가입 유저 성별 예시입니다.", example ="FEMALE") | ||
@Enumerated(EnumType.STRING) | ||
@NotNull | ||
Gender gender, | ||
@Schema(description = "모델 회원가입 선호 지역 예시입니다.", example ="[\"3\", \"15\"]") | ||
@ValidPreferRegions | ||
List<Long> preferRegions | ||
) { | ||
} |
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