-
Notifications
You must be signed in to change notification settings - Fork 5
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 #128 from UMC-FITple/feat/#124_backend_recommend-s…
…tyle 스타일 추천 로직 구현
- Loading branch information
Showing
7 changed files
with
336 additions
and
8 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
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,18 @@ | ||
import { getBodyInfoDTO } from "./recommend.dto.js" | ||
import { getBodyInfoDAO, getBodyInfoAllDAO } from "./recommend.dao.js"; | ||
import { getBodyInfoDTO, getStyleDTO } from "./recommend.dto.js" | ||
import { getBodyInfoDAO, getBodyInfoAllDAO, getStyleDAO, getStyleAllDAO } from "./recommend.dao.js"; | ||
|
||
export const getBodyInfo = async (userId) => { | ||
return getBodyInfoDTO(await getBodyInfoDAO(userId)); | ||
} | ||
|
||
export const getBodyInfoAll = async (userId) => { | ||
return getBodyInfoDTO(await getBodyInfoAllDAO(userId)); | ||
} | ||
|
||
export const getStyle = async (userId) => { | ||
return getStyleDTO(await getStyleDAO(userId)); | ||
} | ||
|
||
export const getStyleAll = async (userId) => { | ||
return getStyleDTO(await getStyleAllDAO(userId)); | ||
} |
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 |
---|---|---|
@@ -1,12 +1,18 @@ | ||
import express from "express"; | ||
import asyncHandler from 'express-async-handler'; | ||
import { LoginCheck } from "../middlewares/logincheck.js"; | ||
import { bodyInfo, bodyInfoAll } from "../domains/recommend/recommend.controller.js"; | ||
import { bodyInfo, bodyInfoAll, style, styleAll } from "../domains/recommend/recommend.controller.js"; | ||
|
||
export const recommendRouter = express.Router({mergeParams: true}); | ||
|
||
//체형 추천 | ||
recommendRouter.get('/body_info', LoginCheck, asyncHandler(bodyInfo)); | ||
|
||
//체형 추천-모두 보기 | ||
recommendRouter.get('/body_info/all', LoginCheck, asyncHandler(bodyInfoAll)); | ||
recommendRouter.get('/body_info/all', LoginCheck, asyncHandler(bodyInfoAll)); | ||
|
||
//스타일 추천 | ||
recommendRouter.get('/style', LoginCheck, asyncHandler(style)); | ||
|
||
//스타일 추천-모두 보기 | ||
recommendRouter.get('/style/all', LoginCheck, asyncHandler(styleAll)); |
Oops, something went wrong.