Skip to content

Commit

Permalink
chore: 유효성 검사 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kimyu0218 committed Dec 19, 2024
1 parent 4c947ae commit b941ce6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
import com.nexters.goalpanzi.application.device.dto.request.UpdateDeviceTokenCommand;
import com.nexters.goalpanzi.domain.device.OsType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;

public record UpdateDeviceTokenRequest(
@Schema(description = "디바이스 식별자", requiredMode = Schema.RequiredMode.REQUIRED)
String deviceIdentifier,
@NotEmpty String deviceIdentifier,
@Schema(description = "device token", requiredMode = Schema.RequiredMode.REQUIRED)
String deviceToken,
@NotEmpty String deviceToken,
@Schema(description = "디바이스 운영체제", requiredMode = Schema.RequiredMode.REQUIRED)
OsType osType
@NotEmpty OsType osType
) {

public UpdateDeviceTokenCommand toServiceDto(final Long memberId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

import com.nexters.goalpanzi.application.device.dto.request.UpdatePushActivationStatusCommand;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;

public record UpdatePushActivationStatusRequest(
@Schema(description = "디바이스 식별자", requiredMode = Schema.RequiredMode.REQUIRED)
String deviceIdentifier,
@NotEmpty String deviceIdentifier,
@Schema(description = "푸시 알림 활성화 여부", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull Boolean pushActivationStatus
) {
Expand Down

0 comments on commit b941ce6

Please sign in to comment.