From aaf24eac7ed896c6ef9657c506067f71819bc071 Mon Sep 17 00:00:00 2001 From: hyejung kim <68772751+hyejungg@users.noreply.github.com> Date: Fri, 20 May 2022 18:00:21 +0900 Subject: [PATCH 1/6] =?UTF-8?q?[chore]=20=EC=9D=B4=EC=8A=88=20=ED=85=9C?= =?UTF-8?q?=ED=94=8C=EB=A6=BF=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/-feat-----0000------.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/-feat-----0000------.md diff --git a/.github/ISSUE_TEMPLATE/-feat-----0000------.md b/.github/ISSUE_TEMPLATE/-feat-----0000------.md new file mode 100644 index 0000000..967feee --- /dev/null +++ b/.github/ISSUE_TEMPLATE/-feat-----0000------.md @@ -0,0 +1,18 @@ +--- +name: "[FEAT:#?] 0000 기능 구현" +about: 기능 구현 및 코드 수정 시 이슈를 생성합니다. +title: '' +labels: '' +assignees: '' + +--- + +## What is this issue? + +## Progress + +- [x] +- [ ] +- [ ] + +## Note From 74d2e3d69b599e8ef0029d183dc94f8b62f2a0cd Mon Sep 17 00:00:00 2001 From: hyejung kim <68772751+hyejungg@users.noreply.github.com> Date: Fri, 20 May 2022 18:02:27 +0900 Subject: [PATCH 2/6] =?UTF-8?q?[chore]=20PR=20=ED=85=9C=ED=94=8C=EB=A6=BF?= =?UTF-8?q?=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/PULL_REQUEST_TEMPLATE.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..cea5ebf --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,4 @@ +## 🌱관련 이슈 +Related to: + +## ❓리뷰 포인트 From fecfdf6cca013016eb08f251b74b905006ce7099 Mon Sep 17 00:00:00 2001 From: Youjung Heo Date: Wed, 25 May 2022 05:36:46 +0900 Subject: [PATCH 3/6] =?UTF-8?q?[ADD#1]=20=ED=95=84=EC=9A=94=ED=95=9C=20?= =?UTF-8?q?=EC=9D=B8=ED=84=B0=ED=8E=98=EC=9D=B4=EC=8A=A4=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=EB=93=A4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interfaces/common/PostBaseResponseDto.ts | 5 +++++ src/interfaces/period/PeriodInfo.ts | 3 +++ src/interfaces/quantity/QuantityInfo.ts | 3 +++ src/interfaces/review/ReviewInfo.ts | 10 ++++++++++ src/interfaces/subscribe/SubscribeInfo.ts | 8 ++++++++ 5 files changed, 29 insertions(+) create mode 100644 src/interfaces/common/PostBaseResponseDto.ts create mode 100644 src/interfaces/period/PeriodInfo.ts create mode 100644 src/interfaces/quantity/QuantityInfo.ts create mode 100644 src/interfaces/review/ReviewInfo.ts create mode 100644 src/interfaces/subscribe/SubscribeInfo.ts diff --git a/src/interfaces/common/PostBaseResponseDto.ts b/src/interfaces/common/PostBaseResponseDto.ts new file mode 100644 index 0000000..6af2f99 --- /dev/null +++ b/src/interfaces/common/PostBaseResponseDto.ts @@ -0,0 +1,5 @@ +import mongoose from "mongoose"; + +export interface PostBaseResponseDto { + _id: mongoose.Schema.Types.ObjectId; +} \ No newline at end of file diff --git a/src/interfaces/period/PeriodInfo.ts b/src/interfaces/period/PeriodInfo.ts new file mode 100644 index 0000000..db38be7 --- /dev/null +++ b/src/interfaces/period/PeriodInfo.ts @@ -0,0 +1,3 @@ +export interface PeriodInfo { + option: string; +} \ No newline at end of file diff --git a/src/interfaces/quantity/QuantityInfo.ts b/src/interfaces/quantity/QuantityInfo.ts new file mode 100644 index 0000000..a333da3 --- /dev/null +++ b/src/interfaces/quantity/QuantityInfo.ts @@ -0,0 +1,3 @@ +export interface QuantityInfo { + option: string; +}; \ No newline at end of file diff --git a/src/interfaces/review/ReviewInfo.ts b/src/interfaces/review/ReviewInfo.ts new file mode 100644 index 0000000..e0fe3ad --- /dev/null +++ b/src/interfaces/review/ReviewInfo.ts @@ -0,0 +1,10 @@ +export interface ReviewInfo { + userName: String; + thumbnail?: String; + description: Text; + rates: Number; + packageName: string; + product: String; + createAt: Date; + updateAt: Date; +} \ No newline at end of file diff --git a/src/interfaces/subscribe/SubscribeInfo.ts b/src/interfaces/subscribe/SubscribeInfo.ts new file mode 100644 index 0000000..621673f --- /dev/null +++ b/src/interfaces/subscribe/SubscribeInfo.ts @@ -0,0 +1,8 @@ +import { PeriodInfo } from "../period/PeriodInfo"; +import { QuantityInfo } from "../quantity/QuantityInfo"; + +export interface SubscribeInfo { + packageName: String; + period: PeriodInfo; + quantity: QuantityInfo; +}; \ No newline at end of file From 80ba0e1d31453670d3bc3d4f206a881aa2ad3b38 Mon Sep 17 00:00:00 2001 From: Youjung Heo Date: Wed, 25 May 2022 06:00:44 +0900 Subject: [PATCH 4/6] =?UTF-8?q?[CHORE#1]=20updatedAt,=20createdAt=20?= =?UTF-8?q?=ED=95=84=EB=93=9C=20=EC=9D=B8=ED=84=B0=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=8A=A4=EC=97=90=EC=84=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interfaces/review/ReviewInfo.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/interfaces/review/ReviewInfo.ts b/src/interfaces/review/ReviewInfo.ts index e0fe3ad..71e065d 100644 --- a/src/interfaces/review/ReviewInfo.ts +++ b/src/interfaces/review/ReviewInfo.ts @@ -5,6 +5,4 @@ export interface ReviewInfo { rates: Number; packageName: string; product: String; - createAt: Date; - updateAt: Date; } \ No newline at end of file From 614b9722d1a0689ba07c7025fff2d416e879e975 Mon Sep 17 00:00:00 2001 From: Youjung Heo Date: Wed, 25 May 2022 06:06:27 +0900 Subject: [PATCH 5/6] =?UTF-8?q?[ADD#1]=20db=20schema=20models=20=EB=94=94?= =?UTF-8?q?=EB=A0=89=ED=86=A0=EB=A6=AC=EC=97=90=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/Period.ts | 11 +++++++++++ src/models/Quantity.ts | 11 +++++++++++ src/models/Review.ts | 32 ++++++++++++++++++++++++++++++++ src/models/Subscribe.ts | 23 +++++++++++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 src/models/Period.ts create mode 100644 src/models/Quantity.ts create mode 100644 src/models/Review.ts create mode 100644 src/models/Subscribe.ts diff --git a/src/models/Period.ts b/src/models/Period.ts new file mode 100644 index 0000000..8cea839 --- /dev/null +++ b/src/models/Period.ts @@ -0,0 +1,11 @@ +import mongoose from "mongoose"; +import { PeriodInfo } from "../interfaces/period/PeriodInfo"; + +const PeriodSchema = new mongoose.Schema ({ + option: { + type: String, + required: true + } +}); + +export default mongoose.model("Period", PeriodSchema) \ No newline at end of file diff --git a/src/models/Quantity.ts b/src/models/Quantity.ts new file mode 100644 index 0000000..32acec6 --- /dev/null +++ b/src/models/Quantity.ts @@ -0,0 +1,11 @@ +import mongoose from "mongoose"; +import { QuantityInfo } from "../interfaces/quantity/QuantityInfo"; + +const QuantitySchema = new mongoose.Schema ({ + option: { + type: String, + required: true + } +}); + +export default mongoose.model("Queantity", QuantitySchema) \ No newline at end of file diff --git a/src/models/Review.ts b/src/models/Review.ts new file mode 100644 index 0000000..6a89712 --- /dev/null +++ b/src/models/Review.ts @@ -0,0 +1,32 @@ +import mongoose from "mongoose"; +import { ReviewInfo } from "../interfaces/review/ReviewInfo"; + +const ReviewSchema = new mongoose.Schema ({ + userName: { + type: String, + required: true + }, + thumbnanil: { + type: String + }, + description: { + type: String, + required: true + }, + rates: { + type: Number, + required: true + }, + packageName: { + type: String, + required: true + }, + product: { + type: String, + required: true + } +}, +{timestamps: true} +); + +export default mongoose.model("Review", ReviewSchema) \ No newline at end of file diff --git a/src/models/Subscribe.ts b/src/models/Subscribe.ts new file mode 100644 index 0000000..ac4e04c --- /dev/null +++ b/src/models/Subscribe.ts @@ -0,0 +1,23 @@ +import mongoose from "mongoose"; +import { SubscribeInfo } from "../interfaces/subscribe/SubscribeInfo"; + +const SubscribeSchema = new mongoose.Schema ({ + packageName: { + type: String, + required: true + }, + period: { + option: { + type: String, + required: true + } + }, + quantity: { + option: { + type: String, + required: true + } + } +}); + +export default mongoose.model("Subscribe", SubscribeSchema) \ No newline at end of file From 5b831a0fb7845d4fea4ad9ac13a07d7473ceff17 Mon Sep 17 00:00:00 2001 From: Youjung Heo Date: Wed, 25 May 2022 19:22:55 +0900 Subject: [PATCH 6/6] =?UTF-8?q?[CHORE#1]=20subscribe=20collection=20schema?= =?UTF-8?q?=20=EB=B0=8F=20interface=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interfaces/subscribe/SubscribeInfo.ts | 1 - src/models/Subscribe.ts | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/interfaces/subscribe/SubscribeInfo.ts b/src/interfaces/subscribe/SubscribeInfo.ts index 621673f..e1361e7 100644 --- a/src/interfaces/subscribe/SubscribeInfo.ts +++ b/src/interfaces/subscribe/SubscribeInfo.ts @@ -2,7 +2,6 @@ import { PeriodInfo } from "../period/PeriodInfo"; import { QuantityInfo } from "../quantity/QuantityInfo"; export interface SubscribeInfo { - packageName: String; period: PeriodInfo; quantity: QuantityInfo; }; \ No newline at end of file diff --git a/src/models/Subscribe.ts b/src/models/Subscribe.ts index ac4e04c..39cd8a9 100644 --- a/src/models/Subscribe.ts +++ b/src/models/Subscribe.ts @@ -2,10 +2,6 @@ import mongoose from "mongoose"; import { SubscribeInfo } from "../interfaces/subscribe/SubscribeInfo"; const SubscribeSchema = new mongoose.Schema ({ - packageName: { - type: String, - required: true - }, period: { option: { type: String,