Skip to content

[Feat] 사용자 포인트 차감 API 구현 #31

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

Merged
merged 3 commits into from
Aug 4, 2024
Merged

[Feat] 사용자 포인트 차감 API 구현 #31

merged 3 commits into from
Aug 4, 2024

Conversation

0-x-14
Copy link
Member

@0-x-14 0-x-14 commented Aug 4, 2024

✨ PR 유형

어떤 변경 사항이 있나요??

  • 새로운 기능 추가
  • 버그 수정
  • CSS 등 사용자 UI 디자인 변경
  • 코드에 영향을 주지 않는 변경사항(오타 수정, 탭 사이즈 변경, 변수명 변경)
  • 코드 리팩토링
  • 주석 추가 및 수정
  • 문서 수정
  • 테스트 추가, 테스트 리팩토링
  • 빌드 부분 혹은 패키지 매니저 수정
  • 파일 혹은 폴더명 수정
  • 파일 혹은 폴더 삭제

🛠️ 작업내용

[ 작업한 내용을 작성해주세요 ( UI 구현이라면 사진도 같이 올려주시면 좋아요! ) ]

  • ApiResponse onFailure isSuccess값 false로 수정

  • github actions 임의 중단

  • 사용자 포인트 차감 API 구현

    • 1점 차감 후 DB에 반영되도록 함
    • 일단 memberId를 입력받는 방식으로 구현했으나 추후 로그인 정보 조회 방식으로 수정할 예정
  • 성공일 경우

    • API 실행 전 DB
      스크린샷 2024-08-05 000700
    • 실행시 Swagger 화면
      스크린샷 2024-08-05 000715
    • API 실행 후 DB (포인트 7->6으로 감소, updated_at 수정됨)
      스크린샷 2024-08-05 000722
  • 에러 처리

    • 사용자 조회 실패했을 경우 400 에러 발생
      스크린샷 2024-08-05 041026

📋 추후 진행 상황

[ 다음에 진행할 작업에 대해 작성해주세요!! ]

[ 현재 커밋 후 풀리퀘 다음으로 작업 내용을 적어주면 됩니다! ]

📌 리뷰 포인트

[ 어떤 부분을 잘 체크해야하는지 작성해주세요 ]

✅ Checklist

PR이 다음 요구 사항을 충족하는지 확인해주세요!!!

  • 커밋 메시지 컨벤션에 맞게 작성했습니다
  • 유지-보수를 위해 주석처리를 잘 작성하였는가?

0-x-14 added 3 commits August 5, 2024 00:41
ApiResponse onFailure isSuccess값 false로 수정함
github actions 임의 중단
사용자 포인트 차감 API 구현
일단 memberId를 입력받는 방식으로 구현했으나 추후 로그인 정보 조회 방식으로 수정할 예정
@0-x-14 0-x-14 added the ✨ feature New feature or request label Aug 4, 2024
@0-x-14 0-x-14 self-assigned this Aug 4, 2024
@0-x-14 0-x-14 linked an issue Aug 4, 2024 that may be closed by this pull request
6 tasks
@0-x-14 0-x-14 merged commit 012c1bf into develop Aug 4, 2024
@0-x-14 0-x-14 mentioned this pull request Aug 4, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 진단 관련 API 구현
1 participant