Skip to content
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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Hello4545
Copy link

요약 *

It closes #604

스크린샷

스크린샷 2024-08-21 오전 1 55 04

CMS-008 API

이후 Task *

  • 없음

Copy link

netlify bot commented Aug 20, 2024

Deploy Preview for jazzy-klepon-c756b5 ready!

Name Link
🔨 Latest commit 41089b9
🔍 Latest deploy log https://app.netlify.com/sites/jazzy-klepon-c756b5/deploys/66c4cab8e993240008d07279
😎 Deploy Preview https://deploy-preview-674--jazzy-klepon-c756b5.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 56
Accessibility: 100
Best Practices: 100
SEO: 92
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@Engineer-JJHaMa Engineer-JJHaMa changed the title Implement a usage-order selection of common spaces #604 Implement a usage-order selection of common spaces Aug 21, 2024
Copy link
Contributor

@Engineer-JJHaMa Engineer-JJHaMa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋습니다 권한 체크 잘 넣어서 마무리해 봅시다!

Comment on lines +171 to +181
@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;
}
Copy link
Contributor

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;
Copy link
Contributor

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),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 Reponse는 coerce가 필요 없는지 확인이 필요합니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement a usage-order selection of common spaces
2 participants