list.dart 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // ignore_for_file: camel_case_types
  2. import 'package:fis_jsonrpc/rpc.dart';
  3. import 'package:get/get.dart';
  4. class ListState {
  5. /// 登记列表
  6. final RxList<AppointmentModel> _appointmentList =
  7. RxList<AppointmentModel>([]);
  8. set appointmentList(List<AppointmentModel> value) =>
  9. _appointmentList.value = value;
  10. List<AppointmentModel> get appointmentList => _appointmentList.value;
  11. }
  12. class AppointmentModel {
  13. /// 预约体检名称
  14. String appointmentName;
  15. /// 预约体检地点
  16. String appointmentAddress;
  17. /// 预约体检开始时间
  18. DateTime? appointmentStartTime;
  19. /// 预约体检结束时间
  20. DateTime? appointmentEndTime;
  21. /// 预约体检说明
  22. String? appointmentDescription;
  23. /// 体检对象
  24. String? appointmentObject;
  25. /// 预约code
  26. String? appointmentCode;
  27. /// 预约url
  28. String? appointmentUrl;
  29. List<HealthExamItemDTO>? appointmentExamItems = [];
  30. List<HealthExamPersonDTO>? appointPersons = [];
  31. AppointmentModel({
  32. required this.appointmentName,
  33. required this.appointmentAddress,
  34. this.appointmentStartTime,
  35. this.appointmentEndTime,
  36. this.appointmentDescription,
  37. this.appointmentObject,
  38. this.appointmentCode,
  39. this.appointmentExamItems,
  40. this.appointmentUrl,
  41. this.appointPersons,
  42. });
  43. }