-
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.
- Loading branch information
Showing
8 changed files
with
33 additions
and
17 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
src/main/java/com/nice/petudio/api/controller/concept/dto/ConceptRetrieveResponse.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,11 @@ | ||
package com.nice.petudio.api.controller.concept.dto; | ||
|
||
|
||
import com.nice.petudio.domain.concept.PetType; | ||
import lombok.AccessLevel; | ||
import lombok.Builder; | ||
|
||
@Builder(access = AccessLevel.PRIVATE) | ||
public record ConceptRetrieveResponse(Long conceptId, String mainImageUri, String name, String description, Boolean isNew) { | ||
public record ConceptRetrieveResponse(Long conceptId, String mainImageUri, String name, String descriptionMessage, | ||
PetType petType, Boolean isNew) { | ||
} |
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
src/main/java/com/nice/petudio/domain/concept/PetType.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 com.nice.petudio.domain.concept; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@AllArgsConstructor(access = AccessLevel.PRIVATE) | ||
@Getter | ||
public enum PetType { | ||
DOG, | ||
CAT | ||
} |
3 changes: 0 additions & 3 deletions
3
src/main/java/com/nice/petudio/domain/concept/repository/ConceptRepository.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,10 +1,7 @@ | ||
package com.nice.petudio.domain.concept.repository; | ||
|
||
import com.nice.petudio.domain.concept.Concept; | ||
import com.nice.petudio.domain.concept.ConceptType; | ||
import java.util.Optional; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface ConceptRepository extends ConceptRepositoryCustom, JpaRepository<Concept, Long> { | ||
Optional<Concept> findByConceptType(ConceptType conceptType); | ||
} |
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,2 +1,6 @@ | ||
INSERT INTO concepts VALUES(1, 'CONCEPT_3D', 'mainImage','image','image','image','image','image','image','image','image', '2024-01-24 23:48:52','2024-01-24 23:48:52'); | ||
INSERT INTO concepts VALUES(2, 'CONCEPT_TRENDY', 'mainImage','image','image','image','image','image','image','image','image', '2024-01-24 23:48:52','2024-01-24 23:48:52'); | ||
INSERT INTO concepts | ||
VALUES (1, 'DOG_3D', 'mainImage', 'image', 'image', 'image', 'image', 'image', 'image', 'image', 'image', | ||
'2024-01-24 23:48:52', '2024-01-24 23:48:52'); | ||
INSERT INTO concepts | ||
VALUES (2, 'DOG_TRENDY', 'mainImage', 'image', 'image', 'image', 'image', 'image', 'image', 'image', 'image', | ||
'2024-01-24 23:48:52', '2024-01-24 23:48:52'); |
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