智慧食堂
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

86 rader
1.7 KiB

  1. package enum
  2. type EnterpriseState int32
  3. const (
  4. EnterpriseStateForNormal = 1
  5. EnterpriseStateForFreeze = 2
  6. )
  7. func (gt EnterpriseState) String() string {
  8. switch gt {
  9. case EnterpriseStateForNormal:
  10. return "正常"
  11. case EnterpriseStateForFreeze:
  12. return "冻结"
  13. default:
  14. return "未知"
  15. }
  16. }
  17. type EnterpriseKind int32
  18. const (
  19. EnterpriseKindByCentralKitchenForSchool = 1
  20. EnterpriseKindByCentralKitchenForFactory = 2
  21. EnterpriseKindBySelfSupportForSchool = 3
  22. EnterpriseKindBySelfSupportForFactory = 4
  23. EnterpriseKindByNursingHome = 5
  24. )
  25. func (gt EnterpriseKind) String() string {
  26. switch gt {
  27. case EnterpriseKindByCentralKitchenForSchool:
  28. return "央厨-学校"
  29. case EnterpriseKindByCentralKitchenForFactory:
  30. return "央厨-工厂"
  31. case EnterpriseKindBySelfSupportForSchool:
  32. return "自营-学校"
  33. case EnterpriseKindBySelfSupportForFactory:
  34. return "自营-工厂"
  35. case EnterpriseKindByNursingHome:
  36. return "养老院"
  37. default:
  38. return "未知"
  39. }
  40. }
  41. type EnterprisePvd int32
  42. const (
  43. EnterprisePvdForOnlinePayment = 1
  44. EnterprisePvdForFaceScanPayment = 2
  45. )
  46. func (gt EnterprisePvd) String() string {
  47. switch gt {
  48. case EnterprisePvdForOnlinePayment:
  49. return "在线支付"
  50. case EnterprisePvdForFaceScanPayment:
  51. return "刷脸支付"
  52. default:
  53. return "未知"
  54. }
  55. }
  56. type EnterpriseMode int32
  57. const (
  58. EnterpriseModeForSchool = 1
  59. EnterpriseModeForFactory = 2
  60. EnterpriseModeForNursingHome = 3
  61. )
  62. func (gt EnterpriseMode) String() string {
  63. switch gt {
  64. case EnterpriseModeForSchool:
  65. return "学校"
  66. case EnterpriseModeForFactory:
  67. return "工厂"
  68. case EnterpriseModeForNursingHome:
  69. return "养老院"
  70. default:
  71. return "未知"
  72. }
  73. }