Compare commits
No commits in common. "424d987c770b2555ead22127dee67c1bf1f01a6e" and "a86d3d62a770b64933da710d7fdd911bdca1d918" have entirely different histories.
424d987c77
...
a86d3d62a7
|
|
@ -0,0 +1,17 @@
|
||||||
|
// 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,
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
// 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,
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
// 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,
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
/*
|
||||||
|
* @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);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
// 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,
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
// 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);
|
||||||
|
|
@ -0,0 +1,45 @@
|
||||||
|
// 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,
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue