local_patient_info.dart 827 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import 'package:eitc_erm_dental_flutter/funcs.dart';
  2. import 'package:isar/isar.dart';
  3. part 'local_patient_info.g.dart';
  4. //本地咨询人信息
  5. @collection
  6. class LocalPatientInfo {
  7. ///ID
  8. Id id = Isar.autoIncrement;
  9. ///名字
  10. String? name;
  11. ///身份证号
  12. String? idCard;
  13. ///关系
  14. String? relation;
  15. ///所属用户ID
  16. String? userId;
  17. ///名字图片,服务器返回的base64编码图片
  18. String? namePic;
  19. //服务器ID
  20. String? serverId;
  21. LocalPatientInfo(
  22. {this.name,
  23. this.idCard,
  24. this.relation,
  25. this.userId,
  26. this.namePic,
  27. this.serverId});
  28. @override
  29. String toString() {
  30. return "name=$name,idcard=$idCard,relation=$relation,userId=$userId,serverId=$serverId";
  31. }
  32. ///解密的身份证
  33. String get idCardDecrypt => aesDecrypt(idCard ?? "");
  34. }