Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Dto 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ori0o0p committed Jan 24, 2024
1 parent b8502b5 commit 59d5c9e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.example.daemawiki.domain.mail.dto;

import jakarta.validation.constraints.Pattern;

public record AuthCodeRequest(
@Pattern(regexp = "^[A-Za-z0-9+_.-]+@(dsm\\.hs\\.kr)$",
message = "메일 형식이 올바르지 않습니다.")
String mail
) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.example.daemawiki.domain.mail.dto;

public record AuthCodeVerifyRequest(
String mail,
String authCode
) {
}

0 comments on commit 59d5c9e

Please sign in to comment.