-
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.
* Feat: 메인 식물 리스트 조회 응닶값 세팅 * Update issue templates * Feat: 메인 화면 랜덤 description 함수 추가 * Chore: Gauge로 통일 * Feat: 메인 식물 리스트 전체 조회 API * Chore: getUserPlants로 함수 이름 변경 * Chore: class 대문자로 변경 * Chore: 프리티어 적용 --------- Co-authored-by: 장서현 <[email protected]>
- Loading branch information
1 parent
11c790b
commit 3cc8379
Showing
13 changed files
with
268 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: 'Fix:' | ||
about: fix | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
--- | ||
name: Fix: | ||
about: fix | ||
title: 'Fix: ~' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## 🚅 Issue 한 줄 요약 | ||
|
||
<!-- 고쳐야 할 기능에 대한 내용을 짧게 설명해주세요. --> | ||
|
||
## 🤷 Issue 세부 내용 | ||
|
||
<!-- 해야 할 일들을 적어주세요. --> | ||
|
||
- [ ] todo! |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { ResponseSuccessDto } from 'src/common/dto/response-success.dto'; | ||
import { READ_PLANTS } from 'src/constants/swagger'; | ||
|
||
const DTO_RESPONSE_DESCRIPTION = READ_PLANTS.DTO_DESCRIPTION.RESPONSE; | ||
|
||
export class UserPlantData { | ||
@ApiProperty({ description: DTO_RESPONSE_DESCRIPTION.PLANTS.ID }) | ||
id: number; | ||
|
||
@ApiProperty({ description: DTO_RESPONSE_DESCRIPTION.PLANTS.PLANT_TYPE }) | ||
plantType: string; | ||
|
||
@ApiProperty({ description: DTO_RESPONSE_DESCRIPTION.PLANTS.D_DAY }) | ||
dDay: number; | ||
|
||
@ApiProperty({ description: DTO_RESPONSE_DESCRIPTION.PLANTS.NICKNAME }) | ||
nickname: string; | ||
|
||
@ApiProperty({ description: DTO_RESPONSE_DESCRIPTION.PLANTS.DESCRIPTION }) | ||
description: string; | ||
|
||
@ApiProperty({ description: DTO_RESPONSE_DESCRIPTION.PLANTS.LEVEL_NAME }) | ||
levelName: string; | ||
|
||
@ApiProperty({ description: DTO_RESPONSE_DESCRIPTION.PLANTS.CIRCLE_IMAGE }) | ||
circleImage: string; | ||
|
||
@ApiProperty({ description: DTO_RESPONSE_DESCRIPTION.PLANTS.MAIN_IMAGE }) | ||
mainImage: string; | ||
|
||
@ApiProperty({ description: DTO_RESPONSE_DESCRIPTION.PLANTS.LOVE_GAUGE }) | ||
loveGauge: number; | ||
|
||
// @ApiProperty({description: DTO_RESPONSE_DESCRIPTION.PLANTS.IS_WATERED}) | ||
// isWatered: boolean; | ||
} | ||
|
||
export class ResponseUserPlantsData { | ||
@ApiProperty({ isArray: true, type: UserPlantData }) | ||
userPlants: UserPlantData[]; | ||
|
||
@ApiProperty({ description: DTO_RESPONSE_DESCRIPTION.PLANT_COUNT }) | ||
userPlantsCount: number; | ||
} | ||
|
||
export class ResponseUserPlantsDto extends ResponseSuccessDto { | ||
@ApiProperty() | ||
data: ResponseUserPlantsData; | ||
} |
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.