no message
This commit is contained in:
parent
1604548333
commit
1d92541092
|
|
@ -1,17 +0,0 @@
|
||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'base_page.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
BasePage _$BasePageFromJson(Map<String, dynamic> json) => BasePage(
|
|
||||||
json['Page'] as int,
|
|
||||||
json['Limit'] as int,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$BasePageToJson(BasePage instance) => <String, dynamic>{
|
|
||||||
'Page': instance.page,
|
|
||||||
'Limit': instance.limit,
|
|
||||||
};
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'base_page_data.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
BasePageData<T> _$BasePageDataFromJson<T>(
|
|
||||||
Map<String, dynamic> json,
|
|
||||||
T Function(Object? json) fromJsonT,
|
|
||||||
) =>
|
|
||||||
BasePageData<T>(
|
|
||||||
(json['items'] as List<dynamic>).map(fromJsonT).toList(),
|
|
||||||
json['total'] as int,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$BasePageDataToJson<T>(
|
|
||||||
BasePageData<T> instance,
|
|
||||||
Object? Function(T value) toJsonT,
|
|
||||||
) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'items': instance.items.map(toJsonT).toList(),
|
|
||||||
'total': instance.total,
|
|
||||||
};
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
import 'package:json_annotation/json_annotation.dart';
|
|
||||||
|
|
||||||
part 'base_page_data_report.g.dart';
|
|
||||||
|
|
||||||
|
|
||||||
@JsonSerializable(genericArgumentFactories: true, fieldRename: FieldRename.snake)
|
|
||||||
class BasePageDataReport<T> extends Object {
|
|
||||||
|
|
||||||
@JsonKey(name: 'Data')
|
|
||||||
List<T> items;
|
|
||||||
|
|
||||||
@JsonKey(name: 'Total')
|
|
||||||
int total;
|
|
||||||
|
|
||||||
BasePageDataReport(this.items,this.total,);
|
|
||||||
|
|
||||||
factory BasePageDataReport.fromJson( Map<String, dynamic> json, T Function(dynamic json) fromJsonT) => _$BasePageDataReportFromJson(json, fromJsonT);
|
|
||||||
Map<String, dynamic> toJson(Object Function(T value) toJsonT) => _$BasePageDataReportToJson(this, toJsonT);
|
|
||||||
}
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'base_page_data_report.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
BasePageDataReport<T> _$BasePageDataReportFromJson<T>(
|
|
||||||
Map<String, dynamic> json,
|
|
||||||
T Function(Object? json) fromJsonT,
|
|
||||||
) =>
|
|
||||||
BasePageDataReport<T>(
|
|
||||||
(json['Data'] as List<dynamic>).map(fromJsonT).toList(),
|
|
||||||
json['Total'] as int,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$BasePageDataReportToJson<T>(
|
|
||||||
BasePageDataReport<T> instance,
|
|
||||||
Object? Function(T value) toJsonT,
|
|
||||||
) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'Data': instance.items.map(toJsonT).toList(),
|
|
||||||
'Total': instance.total,
|
|
||||||
};
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
/*
|
|
||||||
* @Author: wangyang 1147192855@qq.com
|
|
||||||
* @Date: 2022-07-19 16:17:38
|
|
||||||
* @LastEditors: wangyang 1147192855@qq.com
|
|
||||||
* @LastEditTime: 2022-07-19 16:22:41
|
|
||||||
* @FilePath: \marking_app\lib\common\model\common\base_page.dart
|
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
||||||
*/
|
|
||||||
import 'package:json_annotation/json_annotation.dart';
|
|
||||||
|
|
||||||
part 'base_page_report.g.dart';
|
|
||||||
|
|
||||||
|
|
||||||
@JsonSerializable()
|
|
||||||
class BasePageReport extends Object {
|
|
||||||
|
|
||||||
@JsonKey(name: 'PageIndex')
|
|
||||||
int page;
|
|
||||||
|
|
||||||
@JsonKey(name: 'PageSize')
|
|
||||||
int limit;
|
|
||||||
|
|
||||||
BasePageReport(this.page,this.limit,);
|
|
||||||
|
|
||||||
factory BasePageReport.fromJson(Map<String, dynamic> srcJson) => _$BasePageReportFromJson(srcJson);
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => _$BasePageReportToJson(this);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'base_page_report.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
BasePageReport _$BasePageReportFromJson(Map<String, dynamic> json) =>
|
|
||||||
BasePageReport(
|
|
||||||
json['PageIndex'] as int,
|
|
||||||
json['PageSize'] as int,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$BasePageReportToJson(BasePageReport instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'PageIndex': instance.page,
|
|
||||||
'PageSize': instance.limit,
|
|
||||||
};
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'base_structure_result.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
BaseStructureResult<T> _$BaseStructureResultFromJson<T>(
|
|
||||||
Map<String, dynamic> json,
|
|
||||||
T Function(Object? json) fromJsonT,
|
|
||||||
) =>
|
|
||||||
BaseStructureResult<T>(
|
|
||||||
json['code'] as int,
|
|
||||||
json['message'] as String?,
|
|
||||||
_$nullableGenericFromJson(json['data'], fromJsonT),
|
|
||||||
success: json['success'] as bool? ?? false,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$BaseStructureResultToJson<T>(
|
|
||||||
BaseStructureResult<T> instance,
|
|
||||||
Object? Function(T value) toJsonT,
|
|
||||||
) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'success': instance.success,
|
|
||||||
'code': instance.code,
|
|
||||||
'message': instance.message,
|
|
||||||
'data': _$nullableGenericToJson(instance.data, toJsonT),
|
|
||||||
};
|
|
||||||
|
|
||||||
T? _$nullableGenericFromJson<T>(
|
|
||||||
Object? input,
|
|
||||||
T Function(Object? json) fromJson,
|
|
||||||
) =>
|
|
||||||
input == null ? null : fromJson(input);
|
|
||||||
|
|
||||||
Object? _$nullableGenericToJson<T>(
|
|
||||||
T? input,
|
|
||||||
Object? Function(T value) toJson,
|
|
||||||
) =>
|
|
||||||
input == null ? null : toJson(input);
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'upload_img_secret_key.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
UploadImgSecretKey _$UploadImgSecretKeyFromJson(Map<String, dynamic> json) =>
|
|
||||||
UploadImgSecretKey(
|
|
||||||
account: json['account'] as String?,
|
|
||||||
bucketName: json['bucketName'] as String?,
|
|
||||||
endPoint: json['endPoint'] as int?,
|
|
||||||
ip: json['ip'] as String?,
|
|
||||||
password: json['password'] as String?,
|
|
||||||
imgSecretKey: json['imgSecretKey'] as bool?,
|
|
||||||
annotationSwitch: json['annotationSwitch'] as bool? ?? false,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$UploadImgSecretKeyToJson(UploadImgSecretKey instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'account': instance.account,
|
|
||||||
'bucketName': instance.bucketName,
|
|
||||||
'endPoint': instance.endPoint,
|
|
||||||
'ip': instance.ip,
|
|
||||||
'password': instance.password,
|
|
||||||
'imgSecretKey': instance.imgSecretKey,
|
|
||||||
'annotationSwitch': instance.annotationSwitch,
|
|
||||||
};
|
|
||||||
|
|
||||||
FileResult _$FileResultFromJson(Map<String, dynamic> json) => FileResult(
|
|
||||||
myObject: json['myObject'] as String,
|
|
||||||
url: json['url'] as String?,
|
|
||||||
success: json['success'] as bool? ?? false,
|
|
||||||
otherParam: json['otherParam'],
|
|
||||||
)..path = json['path'] as String?;
|
|
||||||
|
|
||||||
Map<String, dynamic> _$FileResultToJson(FileResult instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'path': instance.path,
|
|
||||||
'url': instance.url,
|
|
||||||
'otherParam': instance.otherParam,
|
|
||||||
'myObject': instance.myObject,
|
|
||||||
'success': instance.success,
|
|
||||||
};
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'user_login.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
UserLogin _$UserLoginFromJson(Map<String, dynamic> json) => $checkedCreate(
|
|
||||||
'UserLogin',
|
|
||||||
json,
|
|
||||||
($checkedConvert) {
|
|
||||||
final val = UserLogin(
|
|
||||||
$checkedConvert('access_token', (v) => v as String),
|
|
||||||
$checkedConvert('expires_in', (v) => v as int),
|
|
||||||
$checkedConvert('token_type', (v) => v as String),
|
|
||||||
);
|
|
||||||
return val;
|
|
||||||
},
|
|
||||||
fieldKeyMap: const {
|
|
||||||
'accessToken': 'access_token',
|
|
||||||
'expiresIn': 'expires_in',
|
|
||||||
'tokenType': 'token_type'
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$UserLoginToJson(UserLogin instance) => <String, dynamic>{
|
|
||||||
'access_token': instance.accessToken,
|
|
||||||
'expires_in': instance.expiresIn,
|
|
||||||
'token_type': instance.tokenType,
|
|
||||||
};
|
|
||||||
Loading…
Reference in New Issue