智慧食堂
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

enum_nursing_home_ord.go 1.3 KiB

há 1 ano
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. }