-
Notifications
You must be signed in to change notification settings - Fork 0
[Feat] #184 - 이력서 수정 API 추가 #205
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
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
8bceb1b
[Network] #184 - 경력사항 수정 API
sangyup12 bf0c0a1
[Chore] #184 - MyCareerEditView 이름 변경
sangyup12 176304c
[Refactor] #184 - Model 분리
sangyup12 bfd08e7
[Refactor] #184 - Domain 계층 Entity 분리
sangyup12 81098bb
[Refactor] #184 - Repository, UseCase 수정
sangyup12 788f5e1
[Feat] #184 - CareerEdit / Add 뷰 분기처리
sangyup12 915ec55
[Fix] #184 - 경력수정 시 날짜 조회
sangyup12 cd386b9
[Chore] #184 - Activity, EditView 이름 변경
sangyup12 4de7625
[Network] #184 - 대내외활동 수정 API 연결
sangyup12 628dde0
[Feat] #184 - ActivityEdit / Add 뷰 분기처리
sangyup12 e64b4f8
[Style] #184 - 추가하기/수정하기 버튼 텍스트 수정
sangyup12 019fc38
[Feat] #184 - 날짜 formatter
sangyup12 13db127
[Fix] #184 - Career Add/Edit 반환타입 변경
sangyup12 d34ca4b
Merge remote-tracking branch 'origin/develop' into feat/#184
sangyup12 2419e62
[Fix] #184 - DateFormatter 수정
sangyup12 8cd7d53
Merge remote-tracking branch 'origin/develop' into feat/#184
sangyup12 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
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
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
16 changes: 16 additions & 0 deletions
16
CERTI-iOS/Data/Network/Activity/DTO/Request/EditActivityRequestDTO.swift
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,16 @@ | ||
| // | ||
| // EditActivityRequestDTO.swift | ||
| // CERTI-iOS | ||
| // | ||
| // Created by 이상엽 on 1/26/26. | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| struct EditActivityRequestDTO: Encodable { | ||
| let startAt: String | ||
| let endAt: String | ||
| let place: String | ||
| let name: String | ||
| let description: String | ||
| } |
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
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
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
16 changes: 16 additions & 0 deletions
16
CERTI-iOS/Data/Network/Careers/DTO/Request/EditCareerRequestDTO.swift
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,16 @@ | ||
| // | ||
| // EditCareerRequestDTO.swift | ||
| // CERTI-iOS | ||
| // | ||
| // Created by 이상엽 on 1/15/26. | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| struct EditCareerRequestDTO: Encodable { | ||
| let startAt: String | ||
| let endAt: String | ||
| let place: String | ||
| let name: String | ||
| let description: String | ||
| } |
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
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
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
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,54 @@ | ||
| // | ||
| // ActivityEntity.swift | ||
| // CERTI-iOS | ||
| // | ||
| // Created by 이상엽 on 1/17/26. | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| struct ActivityEntity { | ||
| let activityId: Int? | ||
| let startAt: String | ||
| let endAt: String | ||
| let name: String | ||
| let place: String | ||
| let description: String | ||
| } | ||
|
|
||
| // MARK: - Func | ||
|
|
||
| extension ActivityEntity { | ||
| func toAddActivityRequestDTO() -> AddActivityRequestDTO { | ||
| AddActivityRequestDTO( | ||
| startAt: startAt, | ||
| endAt: endAt, | ||
| place: place, | ||
| name: name, | ||
| description: description | ||
| ) | ||
| } | ||
|
|
||
| func toEditActivityRequestDTO() -> EditActivityRequestDTO { | ||
| EditActivityRequestDTO( | ||
| startAt: startAt, | ||
| endAt: endAt, | ||
| place: place, | ||
| name: name, | ||
| description: description | ||
| ) | ||
| } | ||
|
|
||
| func toActivityModel() -> ActivityModel? { | ||
| guard let activityId else { return nil } | ||
|
|
||
| return ActivityModel( | ||
| activityId: activityId, | ||
| startAt: startAt, | ||
| endAt: endAt, | ||
| name: name, | ||
| place: place, | ||
| description: description | ||
| ) | ||
| } | ||
| } |
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,18 @@ | ||
| // | ||
| // ActivityListEntity.swift | ||
| // CERTI-iOS | ||
| // | ||
| // Created by 이상엽 on 1/17/26. | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| struct ActivityListEntity { | ||
| let list: [ActivityEntity] | ||
| } | ||
|
|
||
| extension ActivityListEntity { | ||
| func toActivityModels() -> [ActivityModel] { | ||
| list.compactMap { $0.toActivityModel() } | ||
| } | ||
| } |
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,54 @@ | ||
| // | ||
| // CareerEntity.swift | ||
| // CERTI-iOS | ||
| // | ||
| // Created by 이상엽 on 1/17/26. | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| struct CareerEntity { | ||
| let careerId: Int? | ||
| let startAt: String | ||
| let endAt: String | ||
| let name: String | ||
| let place: String | ||
| let description: String | ||
| } | ||
|
|
||
| // MARK: - Func | ||
|
|
||
| extension CareerEntity { | ||
| func toAddCareerRequestDTO() -> AddCareerRequestDTO { | ||
| AddCareerRequestDTO( | ||
| startAt: startAt, | ||
| endAt: endAt, | ||
| place: place, | ||
| name: name, | ||
| description: description | ||
| ) | ||
| } | ||
|
|
||
| func toEditCareerRequestDTO() -> EditCareerRequestDTO { | ||
| EditCareerRequestDTO( | ||
| startAt: startAt, | ||
| endAt: endAt, | ||
| place: place, | ||
| name: name, | ||
| description: description | ||
| ) | ||
| } | ||
|
|
||
| func toCareerModel() -> CareerModel? { | ||
| guard let careerId else { return nil } | ||
|
|
||
| return CareerModel( | ||
| careerId: careerId, | ||
| startAt: startAt, | ||
| endAt: endAt, | ||
| name: name, | ||
| place: place, | ||
| description: description | ||
| ) | ||
| } | ||
| } |
Oops, something went wrong.
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.
p3
여기서 같은 엔티티를 써주고 있었군용!