Skip to content

Commit

Permalink
Merge pull request #14 from f-lab-edu/7-job-posting-update
Browse files Browse the repository at this point in the history
[#7] 공고 수정 기능 구현
  • Loading branch information
Younggun-Kim authored Nov 10, 2024
2 parents 51eb3a0 + d987108 commit 8c8dd8b
Show file tree
Hide file tree
Showing 40 changed files with 5,286 additions and 284 deletions.
2 changes: 1 addition & 1 deletion assets/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"workHours": "근무시간",
"numberOfPeopleUnit": "",
"wonUnit": "",
"register": "등록하기",
"registration": "등록",
"serverError": "서버 에러",
"travelTimeGuideDescription": "긱워커가 현장에서 일할 때\n이동시간이 있는지 체크하는 부분입니다.\n\n비급여시 근무시간에서 이동시간을\n제외해서 급여가 측정됩니다.",
"breakTimeGuideDescription": "긱워커가 현장에서 일할 때\n휴게시간이 있는지 체크하는 부분입니다.\n\n비급여시 근무시간에서 휴게시간을\n제외해서 급여가 측정됩니다.",
Expand Down
6 changes: 5 additions & 1 deletion lib/core/network/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import 'package:pretty_dio_logger/pretty_dio_logger.dart';
class API {
final String url = 'https://example.com';

final _dio = Dio(BaseOptions())
late final _dio = Dio(BaseOptions(
baseUrl: url,
contentType: 'application/json',
responseType: ResponseType.json,
))
..interceptors.add(
PrettyDioLogger(
requestBody: true,
Expand Down
36 changes: 32 additions & 4 deletions lib/core/router/router.gr.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/core/utils/resource/string_res.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ enum StringRes {
workHours,
numberOfPeopleUnit,
wonUnit,
register,
registration,
serverError,
travelTimeGuideDescription,
breakTimeGuideDescription,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark

part of 'login_request_dto.dart';

// **************************************************************************
// FreezedGenerator
// **************************************************************************

T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

LoginRequestDto _$LoginRequestDtoFromJson(Map<String, dynamic> json) {
return _LoginRequestDto.fromJson(json);
}

/// @nodoc
mixin _$LoginRequestDto {
AccountType get accountType => throw _privateConstructorUsedError;
LoginType get loginType => throw _privateConstructorUsedError;
String get loginId => throw _privateConstructorUsedError;
String get password => throw _privateConstructorUsedError;

/// Serializes this LoginRequestDto to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;

/// Create a copy of LoginRequestDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$LoginRequestDtoCopyWith<LoginRequestDto> get copyWith =>
throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $LoginRequestDtoCopyWith<$Res> {
factory $LoginRequestDtoCopyWith(
LoginRequestDto value, $Res Function(LoginRequestDto) then) =
_$LoginRequestDtoCopyWithImpl<$Res, LoginRequestDto>;
@useResult
$Res call(
{AccountType accountType,
LoginType loginType,
String loginId,
String password});
}

/// @nodoc
class _$LoginRequestDtoCopyWithImpl<$Res, $Val extends LoginRequestDto>
implements $LoginRequestDtoCopyWith<$Res> {
_$LoginRequestDtoCopyWithImpl(this._value, this._then);

// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of LoginRequestDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? accountType = null,
Object? loginType = null,
Object? loginId = null,
Object? password = null,
}) {
return _then(_value.copyWith(
accountType: null == accountType
? _value.accountType
: accountType // ignore: cast_nullable_to_non_nullable
as AccountType,
loginType: null == loginType
? _value.loginType
: loginType // ignore: cast_nullable_to_non_nullable
as LoginType,
loginId: null == loginId
? _value.loginId
: loginId // ignore: cast_nullable_to_non_nullable
as String,
password: null == password
? _value.password
: password // ignore: cast_nullable_to_non_nullable
as String,
) as $Val);
}
}

/// @nodoc
abstract class _$$LoginRequestDtoImplCopyWith<$Res>
implements $LoginRequestDtoCopyWith<$Res> {
factory _$$LoginRequestDtoImplCopyWith(_$LoginRequestDtoImpl value,
$Res Function(_$LoginRequestDtoImpl) then) =
__$$LoginRequestDtoImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{AccountType accountType,
LoginType loginType,
String loginId,
String password});
}

/// @nodoc
class __$$LoginRequestDtoImplCopyWithImpl<$Res>
extends _$LoginRequestDtoCopyWithImpl<$Res, _$LoginRequestDtoImpl>
implements _$$LoginRequestDtoImplCopyWith<$Res> {
__$$LoginRequestDtoImplCopyWithImpl(
_$LoginRequestDtoImpl _value, $Res Function(_$LoginRequestDtoImpl) _then)
: super(_value, _then);

/// Create a copy of LoginRequestDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? accountType = null,
Object? loginType = null,
Object? loginId = null,
Object? password = null,
}) {
return _then(_$LoginRequestDtoImpl(
accountType: null == accountType
? _value.accountType
: accountType // ignore: cast_nullable_to_non_nullable
as AccountType,
loginType: null == loginType
? _value.loginType
: loginType // ignore: cast_nullable_to_non_nullable
as LoginType,
loginId: null == loginId
? _value.loginId
: loginId // ignore: cast_nullable_to_non_nullable
as String,
password: null == password
? _value.password
: password // ignore: cast_nullable_to_non_nullable
as String,
));
}
}

/// @nodoc
@JsonSerializable()
class _$LoginRequestDtoImpl implements _LoginRequestDto {
_$LoginRequestDtoImpl(
{required this.accountType,
required this.loginType,
required this.loginId,
required this.password});

factory _$LoginRequestDtoImpl.fromJson(Map<String, dynamic> json) =>
_$$LoginRequestDtoImplFromJson(json);

@override
final AccountType accountType;
@override
final LoginType loginType;
@override
final String loginId;
@override
final String password;

@override
String toString() {
return 'LoginRequestDto(accountType: $accountType, loginType: $loginType, loginId: $loginId, password: $password)';
}

@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$LoginRequestDtoImpl &&
(identical(other.accountType, accountType) ||
other.accountType == accountType) &&
(identical(other.loginType, loginType) ||
other.loginType == loginType) &&
(identical(other.loginId, loginId) || other.loginId == loginId) &&
(identical(other.password, password) ||
other.password == password));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode =>
Object.hash(runtimeType, accountType, loginType, loginId, password);

/// Create a copy of LoginRequestDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$LoginRequestDtoImplCopyWith<_$LoginRequestDtoImpl> get copyWith =>
__$$LoginRequestDtoImplCopyWithImpl<_$LoginRequestDtoImpl>(
this, _$identity);

@override
Map<String, dynamic> toJson() {
return _$$LoginRequestDtoImplToJson(
this,
);
}
}

abstract class _LoginRequestDto implements LoginRequestDto {
factory _LoginRequestDto(
{required final AccountType accountType,
required final LoginType loginType,
required final String loginId,
required final String password}) = _$LoginRequestDtoImpl;

factory _LoginRequestDto.fromJson(Map<String, dynamic> json) =
_$LoginRequestDtoImpl.fromJson;

@override
AccountType get accountType;
@override
LoginType get loginType;
@override
String get loginId;
@override
String get password;

/// Create a copy of LoginRequestDto
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$LoginRequestDtoImplCopyWith<_$LoginRequestDtoImpl> get copyWith =>
throw _privateConstructorUsedError;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8c8dd8b

Please sign in to comment.