设备 预约接口
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
import 'package:ef/ef.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:vbvs_app/common/color/ServiceConstant.dart';
|
||||
import 'package:vbvs_app/common/util/requestWithLog.dart';
|
||||
import 'package:vbvs_app/controller/main_bottom/global_controller.dart';
|
||||
|
||||
part 'people_info_controller.g.dart'; // 由json_serializable自动生成的部分
|
||||
|
||||
class PeopleInfoModel {
|
||||
List<PeopleInfoPojo> peopleList = [PeopleInfoPojo(), PeopleInfoPojo()];
|
||||
}
|
||||
|
||||
@JsonSerializable()
|
||||
class PeopleInfoPojo {
|
||||
String? name;
|
||||
@@ -15,8 +13,8 @@ class PeopleInfoPojo {
|
||||
String? height;
|
||||
String? weight;
|
||||
DateTime? birthday;
|
||||
String? tel;
|
||||
String? emergencyContact;
|
||||
String? phone;
|
||||
String? contact;
|
||||
|
||||
PeopleInfoPojo();
|
||||
|
||||
@@ -35,9 +33,9 @@ class PeopleInfoPojo {
|
||||
Map<String, dynamic> toJson() => _$PeopleInfoPojoToJson(this);
|
||||
}
|
||||
|
||||
class PeopleInfoController extends GetControllerEx<PeopleInfoModel> {
|
||||
class PeopleInfoController extends GetControllerEx<PeopleInfoPojo> {
|
||||
PeopleInfoController() {
|
||||
attr = GetModel(PeopleInfoModel()).obs;
|
||||
attr = GetModel(PeopleInfoPojo()).obs;
|
||||
}
|
||||
|
||||
GlobalController get glcontroller => Get.find<GlobalController>();
|
||||
|
||||
Reference in New Issue
Block a user