Skip to content

Conversation

@Moon-ju-young
Copy link
Contributor

📌 변경 사항 개요

application API type들을 정의했습니다.

📝 상세 내용

🔗 관련 이슈

Resolves: #68

🖼️ 스크린샷(선택사항)

💡 참고 사항

  • status에 'pending' | 'accepted' | 'rejected' | 'canceled''accepted' | 'rejected' | 'canceled' 2가지 union type 이 있는데 현재는 그냥 객체 안에 적었습니다만 별개로 분리하는 게 좋을지 의견 구해봅니다
  • alert에서 사용하는 application은 형태가 조금 달라 applicationApi 파일에 넣지 않고 그대로 alertApi 파일에 남겼는데 분리해서 파일에 넣는게 좋을까요?

@Moon-ju-young Moon-ju-young linked an issue Jun 17, 2025 that may be closed by this pull request
2 tasks
@Moon-ju-young Moon-ju-young self-assigned this Jun 17, 2025
@Moon-ju-young Moon-ju-young added ✨ 기능 추가/구현 새로운 기능을 추가하거나 구현했어요! ♻️ 리팩토링 코드 리팩토링 labels Jun 17, 2025
Copy link
Collaborator

@Yun-Jinwoo Yun-Jinwoo left a comment

Choose a reason for hiding this comment

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

status에 'pending' | 'accepted' | 'rejected' | 'canceled' 과 'accepted' | 'rejected' | 'canceled' 2가지 union type 이 있는데 현재는 그냥 객체 안에 적었습니다만 별개로 분리하는 게 좋을지 의견 구해봅니다

각 union type들이 한번만 사용되는 것 같으니 굳이 분리하지 않아도 될 것 같다는 생각입니다!

alert에서 사용하는 application은 형태가 조금 달라 applicationApi 파일에 넣지 않고 그대로 alertApi 파일에 남겼는데 분리해서 파일에 넣는게 좋을까요?

확인해본 결과 alertApi의 ApplicationItemApplicationInfo는 현재 파일과 좀 다르네요!
이런 경우 분리하기엔 네이밍도 애매한 것 같아서 그대로 사용해도 괜찮다고 생각합니다!

Comment on lines 43 to 60
export interface ApplicationUserResponse {
offset: 'number';
limit: 'number';
count: 'number';
hasNext: 'boolean';
items: ApplicationUserInfo[];
link: LinkInfo[];
}

// GET /shops/{shop_id}/notices/{notice_id}/applications - 가게의 특정 공고의 지원 목록 조회 response
export interface ApplicationNoticeResponse {
offset: 'number';
limit: 'number';
count: 'number';
hasNext: 'boolean';
items: ApplicationNoticeInfo[];
link: LinkInfo[];
}
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
Contributor Author

Choose a reason for hiding this comment

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

그냥 복붙하다 보니 놓쳤나 보네요.. 수정하였습니다!

@Moon-ju-young
Copy link
Contributor Author

status에 'pending' | 'accepted' | 'rejected' | 'canceled' 과 'accepted' | 'rejected' | 'canceled' 2가지 union type 이 있는데 현재는 그냥 객체 안에 적었습니다만 별개로 분리하는 게 좋을지 의견 구해봅니다

각 union type들이 한번만 사용되는 것 같으니 굳이 분리하지 않아도 될 것 같다는 생각입니다!

일단 api 파일 내에서는 일단 중복적으로 사용되지는 않는데, 혹시나 Component처럼 외부 파일에서 쓸 수 있지 않을까~ 해서 묻게 되었습니다!

Copy link
Collaborator

@minimo-9 minimo-9 left a comment

Choose a reason for hiding this comment

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

타입 정리 감사합니다!

@Moon-ju-young Moon-ju-young merged commit 6b75ee2 into develop Jun 17, 2025
2 checks passed
@Moon-ju-young Moon-ju-young deleted the feat/68-type-application branch June 17, 2025 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ 리팩토링 코드 리팩토링 ✨ 기능 추가/구현 새로운 기능을 추가하거나 구현했어요!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] application API type 구현

4 participants