-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from PLADI-ALM/feat/PDS-36-delete-material
[PDS-36] 아카이빙 자료 삭제 API hard delete 구현 및 스웨거 설정
- Loading branch information
Showing
8 changed files
with
105 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/java/com/example/PLADIALMArchiving/archiving/dto/request/RegisterProjectReq.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
package com.example.PLADIALMArchiving.archiving.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.validation.constraints.Size; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class RegisterProjectReq { | ||
|
||
@Schema(type = "String", description = "프로젝트 이름 (공백, 특수문자 제외)", minLength = 1, maxLength = 20) | ||
@Size(max = 20, message = "P0006") | ||
private String name; | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/example/PLADIALMArchiving/archiving/dto/request/SearchMaterialReq.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
package com.example.PLADIALMArchiving.archiving.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Getter; | ||
|
||
import javax.validation.constraints.Size; | ||
|
||
@Getter | ||
public class SearchMaterialReq { | ||
|
||
private String cond; | ||
|
||
@Schema(type = "String", description = "검색 카테고리 (전체, 이미지, 비디오, 문서)", maxLength = 10) | ||
@Size(max = 10, message = "P0003") | ||
private String category; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/example/PLADIALMArchiving/archiving/dto/request/UploadMaterialReq.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
package com.example.PLADIALMArchiving.archiving.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Getter; | ||
|
||
import javax.validation.constraints.NotNull; | ||
import javax.validation.constraints.Size; | ||
|
||
@Getter | ||
public class UploadMaterialReq { | ||
|
||
@Schema(type = "String", description = "aws s3 file key") | ||
@NotNull(message = "P0007") | ||
private String fileKey; | ||
|
||
@Schema(type = "String", description = "자료 이름 (공백, 특수문자 제외)", minLength = 1, maxLength = 20) | ||
@Size(max = 20, message = "P0007") | ||
private String name; | ||
|
||
@Schema(type = "String", description = "자료 사이즈") | ||
@NotNull(message = "P0007") | ||
private Long size; | ||
|
||
@Schema(type = "String", description = "확장자 ex) png, jpeg, mp4 ...") | ||
@NotNull(message = "P0007") | ||
private String extension; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters