Skip to content

Commit 70d4add

Browse files
committed
#35 feat. 로그인 DTO 유효성 추가
1 parent 5e25922 commit 70d4add

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
package com.postdm.backend.domain.auth.dto;
22

33
import io.swagger.v3.oas.annotations.media.Schema;
4+
import jakarta.validation.constraints.NotBlank;
45
import lombok.Data;
56

67
@Schema(description = "로그인 DTO")
78
@Data
89
public class SignInRequestDto { // 로그인 데이터 전송을 위한 DTO
910

1011
@Schema(description = "사용자 아이디", example = "test123")
12+
@NotBlank
1113
private String username;
1214

1315
@Schema(description = "사용자 비밀번호", example = "test123")
16+
@NotBlank
1417
private String password;
1518

1619
}

0 commit comments

Comments
 (0)