Skip to content

Commit

Permalink
feat(#53): set id field of request dto to nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
KimDoubleB committed Jan 22, 2023
1 parent 6c63625 commit bad8960
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import java.time.LocalDate

@JsonInclude(JsonInclude.Include.NON_NULL)
data class ArchiveDtoV1(
val archiveId: Long,
val archiveId: Long?,
val name: String,
val watchedOn: String,
val emotion: Emotion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import site.archive.domain.archive.Archive
import site.archive.domain.archive.ArchiveImage

data class ArchiveImageDtoV1(
val archiveImageId: Long,
val archiveImageId: Long?,
val image: String,
val review: String,
val backgroundColor: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import site.archive.domain.user.UserRole

class PasswordRegisterCommandV1(
email: String,

@field: NotBlank(message = "비밀번호는 필수 입력 항목입니다.")
@field: Pattern(
regexp = "(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9@$!%*#?&]{8,20}$",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import site.archive.domain.user.UserRole
import java.time.LocalDateTime

data class BaseUserDtoV1(
val userId: Long,
val userId: Long?,
val mailAddress: String,
val userRole: UserRole,
val profileImage: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty

data class OAuthRegisterRequestDtoV1(
val provider: String,
@field: JsonProperty("providerAccessToken") val token: String

@field: JsonProperty("providerAccessToken")
val token: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import site.archive.domain.user.BaseUser
import site.archive.domain.user.UserRole

data class SpecificUserDtoV1(
val userId: Long,
val userId: Long?,
val mailAddress: String,
val userRole: UserRole,
val createdAt: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import site.archive.dto.v1.archive.ArchiveImageDtoV1

@JsonInclude(JsonInclude.Include.NON_NULL)
data class ArchiveDtoV2(
val archiveId: Long,
val archiveId: Long?,
val name: String,
val watchedOn: String,
val emotion: Emotion,
Expand Down

0 comments on commit bad8960

Please sign in to comment.