智慧食堂
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

53 рядки
1.3 KiB

  1. package enum
  2. type NursingHomePackageOrdState int32
  3. const (
  4. NursingHomePackageOrdStateForWait = 0
  5. NursingHomePackageOrdStateForSuccess = 1
  6. NursingHomePackageOrdStateForFail = 2
  7. )
  8. func (gt NursingHomePackageOrdState) String() string {
  9. switch gt {
  10. case NursingHomePackageOrdStateForWait:
  11. return "待支付"
  12. case NursingHomePackageOrdStateForSuccess:
  13. return "支付成功"
  14. case NursingHomePackageOrdStateForFail:
  15. return "支付失败"
  16. default:
  17. return "未知"
  18. }
  19. }
  20. type NursingHomePackageOrdOrdState int32
  21. const (
  22. NursingHomePackageOrdOrdStateForWait = 0
  23. NursingHomePackageOrdOrdStateForSuccess = 1
  24. NursingHomePackageOrdOrdStateForRefunding = 2
  25. NursingHomePackageOrdOrdStateForPartRefunded = 3
  26. NursingHomePackageOrdOrdStateForRefunded = 4
  27. NursingHomePackageOrdOrdStateForComplete = 5
  28. )
  29. func (gt NursingHomePackageOrdOrdState) String() string {
  30. switch gt {
  31. case NursingHomePackageOrdOrdStateForWait:
  32. return "待支付"
  33. case NursingHomePackageOrdOrdStateForSuccess:
  34. return "预约成功"
  35. case NursingHomePackageOrdOrdStateForRefunding:
  36. return "退款中"
  37. case NursingHomePackageOrdOrdStateForPartRefunded:
  38. return "部分退款"
  39. case NursingHomePackageOrdOrdStateForRefunded:
  40. return "已退款"
  41. case NursingHomePackageOrdOrdStateForComplete:
  42. return "已完成"
  43. default:
  44. return "未知"
  45. }
  46. }