parent
32bf9d8b36
commit
a94c246a0c
@ -1,44 +0,0 @@
|
||||
class VisitorCardsModel {
|
||||
int id;
|
||||
String roomName;
|
||||
String name;
|
||||
int isDrive;
|
||||
String carNum;
|
||||
String effectiveTime;
|
||||
String visitDate;
|
||||
int visitorStatus;
|
||||
|
||||
VisitorCardsModel(
|
||||
{this.id,
|
||||
this.roomName,
|
||||
this.name,
|
||||
this.isDrive,
|
||||
this.carNum,
|
||||
this.effectiveTime,
|
||||
this.visitDate,
|
||||
this.visitorStatus});
|
||||
|
||||
VisitorCardsModel.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
roomName = json['roomName'];
|
||||
name = json['name'];
|
||||
isDrive = json['isDrive'];
|
||||
carNum = json['carNum'];
|
||||
effectiveTime = json['effectiveTime'];
|
||||
visitDate = json['visitDate'];
|
||||
visitorStatus = json['visitorStatus'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['id'] = this.id;
|
||||
data['roomName'] = this.roomName;
|
||||
data['name'] = this.name;
|
||||
data['isDrive'] = this.isDrive;
|
||||
data['carNum'] = this.carNum;
|
||||
data['effectiveTime'] = this.effectiveTime;
|
||||
data['visitDate'] = this.visitDate;
|
||||
data['visitorStatus'] = this.visitorStatus;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
import 'package:aku_community_manager/ui/sub_pages/visitor_manager/visitor_manager_page.dart';
|
||||
|
||||
class AkuMap {
|
||||
static Map<int, VisitorStatus> vistorStatus = {
|
||||
1: VisitorStatus.NOT_VISIT,
|
||||
2: VisitorStatus.VISIT_DONE,
|
||||
3: VisitorStatus.OUTDATE,
|
||||
4: VisitorStatus.CANCEL
|
||||
};
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
import 'package:aku_community_manager/const/api.dart';
|
||||
import 'package:aku_community_manager/utils/network/base_list_model.dart';
|
||||
import 'package:aku_community_manager/utils/network/net_util.dart';
|
||||
|
||||
class ManageFunc {
|
||||
static Future visitorList(int page, int size, {int statuts}) async {
|
||||
BaseListModel baseListModel;
|
||||
if (statuts == 0) {
|
||||
baseListModel = await NetUtil().getList(API.manage.visitorList, params: {
|
||||
'pageNum': page,
|
||||
'size': size,
|
||||
});
|
||||
} else {
|
||||
baseListModel = await NetUtil().getList(API.manage.visitorList, params: {
|
||||
'pageNum': page,
|
||||
'size': size,
|
||||
'visitorStatus': statuts,
|
||||
});
|
||||
}
|
||||
|
||||
return baseListModel;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue