Skip to content

Commit

Permalink
Merge pull request #275 from Wingle-SMWU/develop
Browse files Browse the repository at this point in the history
[Merge] 게시글 수정 Dto validator 추가 test 브랜치에 머지
  • Loading branch information
Lightieey committed Sep 1, 2023
2 parents 8830446 + 6db8a7e commit 3c5f01a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import java.util.List;

import javax.validation.constraints.NotNull;

import org.springframework.web.multipart.MultipartFile;

import kr.co.wingle.common.validator.LengthWithoutCR;
Expand All @@ -17,7 +19,10 @@ public class ArticleEditRequestDto {
@LengthWithoutCR(min = 1, max = 3000, message = "내용은 1자 이상 3000자 이하만 가능합니다.")
private String content;

@NotNull(message = "originImages가 없습니다.")
private List<String> originImages;

@NotNull(message = "newImages가 없습니다.")
private List<MultipartFile> newImages;

}

0 comments on commit 3c5f01a

Please sign in to comment.