-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMemberFolderRequests.java
More file actions
53 lines (44 loc) · 1.48 KB
/
MemberFolderRequests.java
File metadata and controls
53 lines (44 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.web.SearchWeb.folder.controller.dto;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.NoArgsConstructor;
public class MemberFolderRequests {
/**
* 폴더 생성 요청
*/
@Getter
@NoArgsConstructor
public static class Create {
// null이면 루트 폴더
@Positive(message = "parentFolderId는 양수여야 합니다.")
public Long parentFolderId;
@NotBlank(message = "folderName은 비어 있을 수 없습니다.")
@Size(max = 50, message = "folderName은 최대 50자까지 가능합니다.")
public String folderName;
@Size(max = 200, message = "description은 최대 200자까지 가능합니다.")
public String description;
}
/**
* 폴더 수정 요청
*/
@Getter
@NoArgsConstructor
public static class Update {
@Size(max = 50, message = "folderName은 최대 50자까지 가능합니다.")
public String folderName;
@Size(max = 200, message = "description은 최대 200자까지 가능합니다.")
public String description;
}
/**
* 폴더 이동 요청
*/
@Getter
@NoArgsConstructor
public static class Move {
// null이면 루트로 이동
@Positive(message = "newParentFolderId는 양수여야 합니다.")
public Long newParentFolderId;
}
}