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

post 관련 리소스 변수명 간소화 #136

Merged
merged 1 commit into from
Feb 11, 2024
Merged

Conversation

rrgks6221
Copy link
Member

@rrgks6221 rrgks6221 commented Feb 11, 2024

JIRA

QYOG-73

Description

post 관련 리소스 변수명 간소화

To Reviewer

  • controller 레이어 변수명만 변경함
  • freePostId => postId
  • freePostCommentId => commentId
  • freePostReplyCommentId => replyId
  • noticePostid => postId

Reference Link

Related Issue Link

API

Method Path 설명 작업(추가, 수정, 삭제)
GET /api/user 유저 정보 조회 추가

@rrgks6221 rrgks6221 added the Refactor 코드 수정(기능상의 수정이 없는 경우) label Feb 11, 2024
@rrgks6221 rrgks6221 self-assigned this Feb 11, 2024
@hobiJeong
Copy link
Collaborator

hobiJeong commented Feb 11, 2024

JIRA

QYOG-73

Description

post 관련 리소스 변수명 간소화

To Reviewer

  • controller 레이어 변수명만 변경함
  • freePostId => postId
  • freePostCommentId => commentId
  • freePostReplyCommentId => replyId
  • noticePostid => postId

Reference Link

Related Issue Link

API

Method Path 설명 작업(추가, 수정, 삭제)
GET /api/user 유저 정보 조회 추가

이슈 링크가 안타져오

@rrgks6221
Copy link
Member Author

이슈 링크가 안타져오

수정했씁니다.

@@ -60,12 +60,12 @@ export class FreePostCommentsController {
@SetResponse({ type: ResponseType.Pagination, key: 'freePostComments' })
@Get()
async findAllAndCount(
@Param('freePostId', ParsePositiveIntPipe) freePostId: number,
@Param('freePost', ParsePositiveIntPipe) freePost: number,
Copy link
Collaborator

Choose a reason for hiding this comment

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

이거 postId여야 할 것 같아요

putUpdate(
@User() user: UserDto,
@Param('freePostId', ParsePositiveIntPipe) freePostId: number,
@Param('freePostCommentId', ParsePositiveIntPipe) freePostCommentId: number,
@Param('freePost', ParsePositiveIntPipe) freePost: number,
Copy link
Collaborator

Choose a reason for hiding this comment

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

이거 postId여야 할 것 같아요

remove(
@User() user: UserDto,
@Param('freePostId') freePostId: number,
@Param('freePostCommentId', ParsePositiveIntPipe) freePostCommentId: number,
@Param('freePost') freePost: number,
Copy link
Collaborator

Choose a reason for hiding this comment

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

이거 postId여야 할 것 같아요
파이프가 빠졌어여

createReaction(
@User() user: UserDto,
@Param('freePostId', ParsePositiveIntPipe) freePostId: number,
@Param('freePostCommentId', ParsePositiveIntPipe) freePostCommentId: number,
@Param('freePost', ParsePositiveIntPipe) freePost: number,
Copy link
Collaborator

Choose a reason for hiding this comment

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

이거 postId여야 할 것 같아요

removeReaction(
@User() user: UserDto,
@Param('freePostId', ParsePositiveIntPipe) freePostId: number,
@Param('freePostCommentId', ParsePositiveIntPipe) freePostCommentId: number,
@Param('freePost', ParsePositiveIntPipe) freePost: number,
Copy link
Collaborator

Choose a reason for hiding this comment

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

이거 postId여야 할 것 같아요

@Param('freePostCommentId', ParsePositiveIntPipe) freePostCommentId: number,
@Param('freePostReplyCommentId', ParsePositiveIntPipe)
freePostReplyCommentId: number,
@Param('postId') postId: number,
Copy link
Collaborator

Choose a reason for hiding this comment

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

파이프가 빠졌어요

@rrgks6221
Copy link
Member Author

@hobiJeong 꼼꼼한 확인 감사합니다. 수정했어요.

@rrgks6221 rrgks6221 requested a review from hobiJeong February 11, 2024 07:13
@rrgks6221 rrgks6221 merged commit bb73948 into develop Feb 11, 2024
@rrgks6221 rrgks6221 deleted the refactor/QYOG-73 branch February 11, 2024 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor 코드 수정(기능상의 수정이 없는 경우)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants