-
Notifications
You must be signed in to change notification settings - Fork 1
✨ feat: application API 파일 생성 및 타입 정의 #87
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
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
556f124
✨ feat: applicationApi 파일 추가
Moon-ju-young 836b78b
✨ feat: applicationApi LinkInfo type 추가
Moon-ju-young f89e26a
Merge branch 'develop' into feat/68-type-application
Moon-ju-young c1ae42f
✨ feat: applicationApi ApplicationItem type 추가
Moon-ju-young aa02749
✨ feat: applicationApi ApplicationUserItem type 추가
Moon-ju-young 5bb5448
✨ feat: applicationApi ApplicationNoticeItem type 추가
Moon-ju-young c139cee
✨ feat: applicationApi ApplicationUserInfo type 추가
Moon-ju-young 4d68fd6
✨ feat: applicationApi ApplicationNoticeInfo type 추가
Moon-ju-young 41a0b1e
✨ feat: applicationApi ApplicationUserResponse type 추가
Moon-ju-young 5c44ebc
✨ feat: applicationApi ApplicationNoticeResponse type 추가
Moon-ju-young 42e99ae
✨ feat: applicationApi ApplicationRequest 추가
Moon-ju-young e499341
♻️ refactor: ApplicationItem type applicationApi 파일에서 import로 수정
Moon-ju-young 61e7fc3
🐛 fix: 잘못된 type 수정
Moon-ju-young File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| import type { NoticeInfo } from './alertApi'; | ||
| import type { ShopInfo } from './shopApi'; | ||
| import type { UserProfileItem } from './userApi'; | ||
|
|
||
| export interface LinkInfo { | ||
| rel: string; | ||
| description: string; | ||
| method: string; | ||
| href: string; | ||
| } | ||
|
|
||
| export interface ApplicationItem { | ||
| id: string; | ||
| status: 'pending' | 'accepted' | 'rejected' | 'canceled'; | ||
| createdAt: string; | ||
| } | ||
|
|
||
| export interface ApplicationUserItem extends ApplicationItem { | ||
| shop: ShopInfo; | ||
| notice: NoticeInfo; | ||
| } | ||
|
|
||
| export interface ApplicationNoticeItem extends ApplicationUserItem { | ||
| user: { | ||
| item: UserProfileItem; | ||
| href: string; | ||
| }; | ||
| } | ||
|
|
||
| export interface ApplicationUserInfo { | ||
| item: ApplicationUserItem; | ||
| link: LinkInfo[]; | ||
| } | ||
|
|
||
| // POST /shops/{shop_id}/notices/{notice_id}/applications - 가게의 특정 공고 지원 등록 response | ||
| // PUT /shops/{shop_id}/notices/{notice_id}/applications/{application_id} - 가게의 특정 공고 지원 승인, 거절 또는 취소 response | ||
| export interface ApplicationNoticeInfo { | ||
| item: ApplicationNoticeItem; | ||
| link: LinkInfo[]; | ||
| } | ||
|
|
||
| // GET /users/{user_id}/applications - 유저의 지원 목록 조회 response | ||
| 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[]; | ||
| } | ||
|
|
||
| // PUT /shops/{shop_id}/notices/{notice_id}/applications/{application_id} - 가게의 특정 공고 지원 승인, 거절 또는 취소 request | ||
| export interface ApplicationRequest { | ||
| status: 'accepted' | 'rejected' | 'canceled'; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
타입에
''가 붙어있습니다! 수정 부탁드립니다!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그냥 복붙하다 보니 놓쳤나 보네요.. 수정하였습니다!