智慧食堂
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. }