Skip to content

Commit

Permalink
add : 3차 세미나 과제_PostCreateRequest record 생성 #7
Browse files Browse the repository at this point in the history
  • Loading branch information
PicturePark1101 committed May 1, 2024
1 parent d05b23b commit 3577cc3
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.example.demo.service.dto.post;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

public record PostCreateRequest(
@NotBlank(message = "글의 제목은 필수입니다.")
String name,

@NotBlank(message = "글의 내용은 필수입니다.")
String content

){}
// name과 content가 필요함

0 comments on commit 3577cc3

Please sign in to comment.