智慧食堂
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

89 lignes
1.8 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. EnterprisePvdForAllPayment = 3
  46. )
  47. func (gt EnterprisePvd) String() string {
  48. switch gt {
  49. case EnterprisePvdForOnlinePayment:
  50. return "在线支付"
  51. case EnterprisePvdForFaceScanPayment:
  52. return "刷脸支付"
  53. case EnterprisePvdForAllPayment:
  54. return "刷脸/刷码/扫码支付"
  55. default:
  56. return "未知"
  57. }
  58. }
  59. type EnterpriseMode int32
  60. const (
  61. EnterpriseModeForSchool = 1
  62. EnterpriseModeForFactory = 2
  63. EnterpriseModeForNursingHome = 3
  64. )
  65. func (gt EnterpriseMode) String() string {
  66. switch gt {
  67. case EnterpriseModeForSchool:
  68. return "学校"
  69. case EnterpriseModeForFactory:
  70. return "工厂"
  71. case EnterpriseModeForNursingHome:
  72. return "养老院"
  73. default:
  74. return "未知"
  75. }
  76. }