-
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 #145 from ItRecode/feature/BE-196
BE-196 μμ κ³ μ λ μ½λ API κ°λ°
- Loading branch information
Showing
8 changed files
with
167 additions
and
1 deletion.
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
45 changes: 45 additions & 0 deletions
45
src/main/java/com/recordit/server/dto/record/mix/MixRecordDto.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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.recordit.server.dto.record.mix; | ||
|
||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.AccessLevel; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
|
||
@Getter | ||
@ToString | ||
@ApiModel | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class MixRecordDto { | ||
@ApiModelProperty(notes = "λ―Ήμ€ λ μ½λ μμ΄λ") | ||
private Long recordId; | ||
|
||
@ApiModelProperty(notes = "λ―Ήμ€ λ μ½λ μμμ΄λ¦") | ||
private String colorName; | ||
|
||
@ApiModelProperty(notes = "λ―Ήμ€ λ μ½λ μμ΄μ½μ΄λ¦") | ||
private String iconName; | ||
|
||
@ApiModelProperty(notes = "λ―Ήμ€ λ μ½λ λκΈ μμ΄λ") | ||
private Long commentId; | ||
|
||
@ApiModelProperty(notes = "λ―Ήμ€ λ μ½λ λκΈ λ΄μ©") | ||
private String commentContent; | ||
|
||
@Builder | ||
public MixRecordDto( | ||
Long recordId, | ||
String colorName, | ||
String iconName, | ||
Long commentId, | ||
String commentContent | ||
) { | ||
this.recordId = recordId; | ||
this.colorName = colorName; | ||
this.iconName = iconName; | ||
this.commentId = commentId; | ||
this.commentContent = commentContent; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/com/recordit/server/dto/record/mix/MixRecordResponseDto.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.recordit.server.dto.record.mix; | ||
|
||
import java.util.List; | ||
|
||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.AccessLevel; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
|
||
@Getter | ||
@ToString | ||
@ApiModel | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class MixRecordResponseDto { | ||
@ApiModelProperty(notes = "λ―Ήμ€λ μ½λ 리μ€νΈ") | ||
private List<MixRecordDto> mixRecordDto; | ||
|
||
@Builder | ||
public MixRecordResponseDto(List<MixRecordDto> mixRecordDto) { | ||
this.mixRecordDto = mixRecordDto; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/recordit/server/exception/record/FixRecordNotExistException.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.recordit.server.exception.record; | ||
|
||
public class FixRecordNotExistException extends RuntimeException { | ||
public FixRecordNotExistException(String message) { | ||
super(message); | ||
} | ||
} |
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