-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a usage-order selection of common spaces #674
base: dev
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for jazzy-klepon-c756b5 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋습니다 권한 체크 잘 넣어서 마무리해 봅시다!
@Get("student/common-spaces/common-space/usage-order/:orderId") | ||
@UsePipes(new ZodPipe(apiCms008)) | ||
async getStudentCommonSpacesUsageOrderDetail( | ||
@Param() param: ApiCms008RequestParam, | ||
): Promise<ApiCms008ResponseOk> { | ||
const result = | ||
await this.commonspaceService.getStudentCommonSpacesUsageOrderDetail( | ||
param.orderId, | ||
); | ||
return result; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❗ CMS-008은 사용자가 해당 신청의 신청자이거나 신청 동아리의 대표자+대의원인지 검사합니다. 이를 위해 토큰으로부터 유저 정보를 가져와야해요. GetStudent의 사용 예시를 보고 적용해주세요
await this.commonSpaceUsageOrderDRepository.findCommonSpaceUsageOrderById( | ||
orderId, | ||
); | ||
// const { id } = order; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❗ 아마 요근처에서 권한 확인이 들어가야 할 것 같네요
|
||
const responseBodyMap = { | ||
[HttpStatusCode.Ok]: z.object({ | ||
orderId: z.number().int().min(1), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💬 Reponse는 coerce가 필요 없는지 확인이 필요합니다
요약 *
It closes #604
스크린샷
CMS-008 API
이후 Task *