-
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.
- Loading branch information
Showing
61 changed files
with
1,928 additions
and
532 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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export 'l10n_key_provider.dart'; | ||
export 'translatable.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,8 @@ | ||
import 'package:easy_localization/easy_localization.dart' as easy; | ||
|
||
/// Localization | ||
mixin Translatable { | ||
String get path; | ||
|
||
String get tr => easy.tr('$path$this'); | ||
} |
23 changes: 23 additions & 0 deletions
23
lib/core/utils/resource/job_posting_validation_message.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,23 @@ | ||
import 'package:withu_app/core/core.dart'; | ||
|
||
/// 공고 관리 유효성 검사 메시지 | ||
enum JobPostingValidationMessage with Translatable { | ||
title, | ||
content, | ||
category, | ||
contractType, | ||
contractStartDate, | ||
contractEndDate, | ||
workStartTime, | ||
workEndTime, | ||
participants, | ||
payType, | ||
payAmount, | ||
address, | ||
preferredQualification, | ||
travelTimePaid, | ||
breakTimePaid; | ||
|
||
@override | ||
String get path => 'validationMessage.jobPosting.'; | ||
} |
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 +1,2 @@ | ||
export 'string_res.dart'; | ||
export 'job_posting_validation_message.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export 'validation_result.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 @@ | ||
/// 유효성 검사 결과 | ||
class ValidationResult { | ||
/// 유효성 여부 | ||
final bool isValid; | ||
|
||
/// 유효성 검사 실패 메시지 | ||
final String failMessage; | ||
|
||
ValidationResult({ | ||
required this.isValid, | ||
this.failMessage = '', | ||
}); | ||
|
||
/// 검사 성공 | ||
factory ValidationResult.success() { | ||
return ValidationResult(isValid: true); | ||
} | ||
|
||
/// 검사 실패 | ||
factory ValidationResult.fail({ | ||
required String message, | ||
}) { | ||
return ValidationResult( | ||
isValid: false, | ||
failMessage: message, | ||
); | ||
} | ||
} |
Oops, something went wrong.