-
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 #115 from KCY-Fit-a-Pet/hotfix/111
🔧 (개발 회의 안건) 프론트엔드 요구 사항 픽스
- Loading branch information
Showing
21 changed files
with
149 additions
and
99 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
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
12 changes: 12 additions & 0 deletions
12
...t-app-external-api/src/main/java/kr/co/fitapet/api/apis/memo/dto/MemoCategorySaveRes.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,12 @@ | ||
package kr.co.fitapet.api.apis.memo.dto; | ||
|
||
import kr.co.fitapet.common.annotation.Dto; | ||
|
||
@Dto(name = "memoCategory") | ||
public record MemoCategorySaveRes( | ||
Long memoCategoryId | ||
) { | ||
public static MemoCategorySaveRes valueOf(Long memoCategoryId) { | ||
return new MemoCategorySaveRes(memoCategoryId); | ||
} | ||
} |
22 changes: 0 additions & 22 deletions
22
fitapet-app-external-api/src/main/java/kr/co/fitapet/api/apis/memo/dto/MemoPatchReq.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
.../domain/domains/memo/dto/MemoSaveReq.java → ...itapet/api/apis/memo/dto/MemoSaveReq.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
12 changes: 12 additions & 0 deletions
12
fitapet-app-external-api/src/main/java/kr/co/fitapet/api/apis/memo/dto/MemoSaveRes.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,12 @@ | ||
package kr.co.fitapet.api.apis.memo.dto; | ||
|
||
import kr.co.fitapet.common.annotation.Dto; | ||
|
||
@Dto(name = "memo") | ||
public record MemoSaveRes( | ||
Long memoId | ||
) { | ||
public static MemoSaveRes valueOf(Long memoId) { | ||
return new MemoSaveRes(memoId); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
fitapet-app-external-api/src/main/java/kr/co/fitapet/api/apis/memo/dto/MemoUpdateReq.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,30 @@ | ||
package kr.co.fitapet.api.apis.memo.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Size; | ||
import kr.co.fitapet.domain.domains.memo.domain.Memo; | ||
|
||
import java.util.List; | ||
|
||
@Schema(description = "메모 수정 요청") | ||
public record MemoUpdateReq( | ||
@Schema(description = "기록 옮길 카테고리 아이디 (변경 사항 없으면 원래 아이디 값 그대로)", example = "1", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | ||
@NotNull(message = "메모 카테고리 아이디는 필수입니다.") | ||
Long memoCategoryId, | ||
@NotBlank(message = "제목은 필수입니다.") | ||
@Schema(description = "제목", example = "오늘의 일기", requiredMode = Schema.RequiredMode.REQUIRED) | ||
@Size(max = 21, message = "제목은 21자 이하로 입력해주세요.") | ||
String title, | ||
@NotBlank(message = "내용은 필수입니다.") | ||
@Schema(description = "내용", example = "오늘은 매우 행복했다.", requiredMode = Schema.RequiredMode.REQUIRED) | ||
String content, | ||
@NotNull(message = "메모 이미지는 필수입니다. 없으면 빈 배열을 보내주세요.") | ||
@Schema(description = "메모 이미지", example = "[\"https://fitapet.com/image/1.jpg\", \"https://fitapet.com/image/2.jpg\"]", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | ||
List<String> memoImageUrls | ||
) { | ||
public Memo toEntity() { | ||
return Memo.of(title, content); | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
...et-domain/src/main/java/kr/co/fitapet/domain/common/annotation/JavaTimeRedisTemplate.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,13 @@ | ||
package kr.co.fitapet.domain.common.annotation; | ||
|
||
import org.springframework.beans.factory.annotation.Qualifier; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD, | ||
ElementType.TYPE, ElementType.ANNOTATION_TYPE}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
@Qualifier("javaTimeRedisTemplate") | ||
public @interface JavaTimeRedisTemplate { | ||
} |
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
Oops, something went wrong.