rpc_enum_labels.dart 981 B

123456789101112131415161718192021222324252627282930313233343536
  1. import 'package:fis_jsonrpc/rpc.dart';
  2. abstract class RpcEnumLabels {
  3. static final gender = <GenderEnum, String>{
  4. GenderEnum.Male: "男",
  5. GenderEnum.Female: "女",
  6. GenderEnum.Unknown: "未知",
  7. GenderEnum.Unspecified: "未说明的性别",
  8. };
  9. static final cardType = <CardTypeEnum, String>{
  10. CardTypeEnum.Identity: "身份证",
  11. CardTypeEnum.Passport: "护照",
  12. CardTypeEnum.SocialInsurance: "社保卡",
  13. };
  14. static final followUpMode = <FollowUpModeEnum, String>{
  15. FollowUpModeEnum.Outpatient: "门诊",
  16. FollowUpModeEnum.Visit: "家庭",
  17. FollowUpModeEnum.Phone: "电话",
  18. };
  19. static final followUpChild3_6_Year = <FollowUpChild3_6YearEnum, String>{
  20. FollowUpChild3_6YearEnum.ThreeYear: "3岁",
  21. FollowUpChild3_6YearEnum.FourYear: "4岁",
  22. FollowUpChild3_6YearEnum.FiveYear: "5岁",
  23. FollowUpChild3_6YearEnum.SixYear: "6岁",
  24. };
  25. }
  26. enum FollowUpChild3_6YearEnum {
  27. ThreeYear,
  28. FourYear,
  29. FiveYear,
  30. SixYear,
  31. }