-
Notifications
You must be signed in to change notification settings - Fork 1
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
[#6] 공고 삭제 기능 구현 #13
Merged
Younggun-Kim
merged 8 commits into
feature/5-job-posting-close
from
6-job-posting-delete
Nov 10, 2024
Merged
[#6] 공고 삭제 기능 구현 #13
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9521ebe
feat: #6/공고 삭제 API 추가
Younggun-Kim 02a11e4
feat: #6/공고 삭제 Repository 추가
Younggun-Kim 46acf6d
feat: #6/공고 삭제 Usecase 추가
Younggun-Kim 052c40b
feat: #6/공고 삭제 Bloc 이벤트 추가
Younggun-Kim 1ec410f
feat: #6/공고 삭제 UI와 Bloc 연결
Younggun-Kim 70aec56
feat: #6/공고 삭제 API 수정, Usecase 수정
Younggun-Kim 4517fae
feat: #6/공고 삭제 후 화면 뒤로가기시 데이터 전달
Younggun-Kim 11eec5d
style: #6/필요없는 로깅 코드 삭제
Younggun-Kim 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 @@ | ||
export 'data_sources/data_sources.dart'; |
This file contains 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 @@ | ||
export 'delete/delete_response_dto.dart'; |
28 changes: 28 additions & 0 deletions
28
lib/shared/data/data_sources/delete/delete_response_dto.dart
This file contains 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,28 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
part 'delete_response_dto.freezed.dart'; | ||
|
||
part 'delete_response_dto.g.dart'; | ||
|
||
part 'delete_response_dto.mock.dart'; | ||
|
||
/// 삭제 응답 DTO | ||
@freezed | ||
class DeleteResponseDto with _$DeleteResponseDto { | ||
const factory DeleteResponseDto({ | ||
required String id, | ||
required bool deleted, | ||
required String? message, | ||
}) = _DeleteResponseDto; | ||
|
||
factory DeleteResponseDto.fromJson(Map<String, Object?> json) => | ||
_$DeleteResponseDtoFromJson(json); | ||
|
||
/// Mock 삭제 성공 | ||
factory DeleteResponseDto.mockSuccess({required String id}) => | ||
DeleteResponseDtoMock.mockSuccess(id: id); | ||
|
||
/// Mock 삭제 실패 | ||
factory DeleteResponseDto.mockFail({required String id}) => | ||
DeleteResponseDtoMock.mockFail(id: id); | ||
} |
Oops, something went wrong.
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.
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.
#11 PR 수정하면서 같이 반영해 푸시했습니다!
jobPostingRepo.delete()
로 사용할 수 있게 변경했습니다!