-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. JobPostingWorkersPage 추가 2. WorkerProfile 추가 3. JobPostingWorkersPage와 JobPostingWorkersBloc 연결
- Loading branch information
1 parent
7a8ba84
commit 1120ee1
Showing
25 changed files
with
568 additions
and
66 deletions.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
lib/feature/job_posting/data/data_sources/dto/worker/worker.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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export 'job_posting_workers_dto.dart'; | ||
export '../workers/job_posting_workers_dto.dart'; | ||
export 'job_posting_worker_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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...dto/worker/job_posting_workers_dto.g.dart → ...to/workers/job_posting_workers_dto.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
lib/feature/job_posting/data/data_sources/dto/workers/job_posting_workers_dto.mock.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,27 @@ | ||
part of 'job_posting_workers_dto.dart'; | ||
|
||
extension JobPostingWorkersDtoExt on JobPostingWorkersDto { | ||
static JobPostingWorkersDto mock({ | ||
required int page, | ||
}) { | ||
const int totalElements = 27; | ||
final List<JobPostingWorkerDto> workers = List.generate( | ||
(10 * page) > totalElements ? (10 * page) - totalElements : 10, | ||
(int index) => JobPostingWorkerDtoExt.mock( | ||
id: '${(page * 10) + index}', | ||
), | ||
); | ||
|
||
return JobPostingWorkersDto( | ||
title: '공고제목!', | ||
participants: 49, | ||
workStartDate: DateTime.now(), | ||
workEndDate: DateTime.now().add(const Duration(days: 4)), | ||
content: workers, | ||
totalPages: 3, | ||
totalElements: totalElements, | ||
size: 10, | ||
number: page, | ||
); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
lib/feature/job_posting/data/data_sources/dto/workers/workers.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 'job_posting_workers_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
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
Oops, something went wrong.