Skip to content

Conversation

@k906506
Copy link
Collaborator

@k906506 k906506 commented Mar 23, 2025

#️⃣ 연관된 이슈

[feature-29] 1차 MVP 기능 개선 #29

📝 작업 내용

  • 앱 버전 관리 API 신규 개발 (강제, 선택 업데이트)
    • Android : 'api/v1/appVersion/Android'
    • iOS : 'api/v1/appVersion/iOS'
  • 신규 유저 관련 API 수정 개발 (/register API)
    • 신규 유저 : 응답코드 201
    • 기존 유저 : 응답코드 200
  • 기존 카테고리 미사용 및 신규 카테고리 추가 (미사용 : '없음' / 추가 : '절약', '선택미스')
    • 절약 : SAVING
    • 선택미스 : MISS
  • API Response 수정
    • GET : 성공(200), 실패(500)
    • POST : 성공(201), 실패(500)
  • API URL 수정
    • prefix 추가 : 'api/v1/'
  • 기존 API 원복
    • Android, iOS API 작업 완료되면, 기존 API 삭제 예정

@k906506 k906506 added the enhancement New feature or request label Mar 23, 2025
@k906506 k906506 requested a review from Jeongminyooa March 23, 2025 08:09
@k906506 k906506 self-assigned this Mar 23, 2025
@github-actions
Copy link

github-actions bot commented Mar 23, 2025

Unit Test Results

1 tests   1 ✔️  0s ⏱️
1 suites  0 💤
1 files    0

Results for commit dc8073d.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@Jeongminyooa Jeongminyooa left a comment

Choose a reason for hiding this comment

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

코드 확인했으!!! 코멘트 한번만 확인해줘~ 넘 고생많았다....

@Getter
@Setter
public class HttpStatusDTO<T> {
private int statusCode;
Copy link
Collaborator

Choose a reason for hiding this comment

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

추후에 http status에 쓰이는 변수들 enum으로 관리 가능하게 재정의하면 좋을 듯!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

2.0 배포하면서 추가로 작업할게!

package donmani.donmani_server.appversion.entity;

public enum PlatformType {
Android,
Copy link
Collaborator

Choose a reason for hiding this comment

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

대문자로 통일하는게 낫지 않을까? e.g. AOS, IOS 등

Copy link
Collaborator Author


@GetMapping("/calendar/{userKey}")
public ResponseEntity<ExpenseResponseDTO> getExpensesCalendar(
@GetMapping("api/v1/expenses/calendar/{userKey}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

서버 사이드는 버전 정책 어떻게 가져갈지 한번 얘기해봐야겠다

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

좋아!
지금 기존 API 살리느라 클래스(DTO), 메소드, URL에 V1, V2 막 섞여있는데, 클라쪽 API 붙이는 작업 마치면 이것도 다시 손볼게

userRepository.save(newUser);

UserRegisterResponseDTO response = new UserRegisterResponseDTO(user.getUserKey(), user.getName());
response = new UserRegisterResponseDTO(true, newUser.getUserKey(), newUser.getName());
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기서는 왜 builder를 안 쓴건쥐 궁금해!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

직관성...?

@Jeongminyooa Jeongminyooa merged commit b120ab9 into dev Mar 27, 2025
2 checks passed
@Jeongminyooa Jeongminyooa deleted the feature-29 branch June 16, 2025 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants