Skip to content

Commit

Permalink
Merge pull request #9 from f-lab-edu/feature/job-posting-form
Browse files Browse the repository at this point in the history
공고 등록 기능 PR
  • Loading branch information
Younggun-Kim authored Oct 20, 2024
2 parents d084a6d + 77ee53a commit 9dabd14
Show file tree
Hide file tree
Showing 59 changed files with 4,925 additions and 117 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/sonarcloud-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
REPO_NAME=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 2)
ORG_NAME=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 1)
SONAR_PROJECT_KEY="${ORG_NAME}_${REPO_NAME}"
echo "SONAR_PROJECT_KEY=$SONAR_PROJECT_KEY" >> $GITHUB_ENV
echo "SONAR_PROJECT_KEY=$SONAR_PROJECT_KEY" >> $GITHUB_ENV
- name: Analyze with SonarCloud
uses: SonarSource/sonarcloud-github-action@master
Expand All @@ -35,5 +35,3 @@ jobs:
args:
-Dsonar.projectKey=${{ env.SONAR_PROJECT_KEY }}
-Dsonar.organization=f-lab-edu-1


36 changes: 35 additions & 1 deletion assets/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,39 @@
"catering": "케이터링",
"foodStyling": "푸드스타일링",
"florist": "플라워리스트",
"numberOfRecruits": "모집인원"
"flower": "플라워",
"numberOfRecruits": "모집인원",
"enterTitle": "제목을 입력하세요.",
"workDetail": "근로내용",
"enterDescriptionOfJobPosting": "공고에 대한 설명을 입력하세요.",
"selectCategory": "카테고리 선택",
"periodFormat": "기간형식",
"shortTerm": "단기",
"longTerm": "장기",
"workContractPeriod": "근로계약기간",
"workContractStartPeriod": "근로계약 시작기간",
"workContractEndPeriod": "근로계약 종료기간",
"time": "시간",
"tbc": "미정",
"numberOfPeopleRecruited": "모집인원",
"payMethod": "급여방법",
"hourlyWage": "시급",
"dailyWage": "일급",
"address": "주소",
"findAddress": "주소찾기",
"enterDetailedAddress": "상세주소 입력하세요.",
"preferences": "우대사항",
"enterMemo": "메모를 입력하세요.",
"travelTime": "이동시간",
"travelTimeOrNot": "이동시간 유무",
"wage": "급여",
"nonWage": "비급여",
"breakTime": "휴게시간",
"breakTimeOrNot": "휴게시간 유무",
"mealPaid": "식비",
"mealPaidOrNot": "식비 유무",
"workHours": "근무시간",
"numberOfPeopleUnit": "",
"wonUnit": "",
"register": "등록하기"
}
27 changes: 27 additions & 0 deletions lib/core/network/api_response.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import 'package:freezed_annotation/freezed_annotation.dart';

part 'api_response.freezed.dart';

part 'api_response.g.dart';

@freezed
class ApiResponse<T> with _$ApiResponse<T> {
const factory ApiResponse.success(T data) = _Success<T>;

const factory ApiResponse.fail(FailResponse failResponse) = _Fail;

const factory ApiResponse.error() = _Error;
}

@freezed
abstract class FailResponse with _$FailResponse {
const factory FailResponse({
required int status,
required String error,
required String message,
required String devMessage,
}) = _FailResponse;

factory FailResponse.fromJson(Map<String, dynamic> json) =>
_$FailResponseFromJson(json);
}
Loading

0 comments on commit 9dabd14

Please sign in to comment.