智慧食堂
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

47 satır
989 B

  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 EnterprisePvd int32
  18. const (
  19. EnterprisePvdByCentralKitchenForSchool = 1
  20. EnterprisePvdByCentralKitchenForFactory = 2
  21. EnterprisePvdBySelfSupportForSchool = 3
  22. EnterprisePvdBySelfSupportForFactory = 4
  23. EnterprisePvdByNursingHome = 5
  24. )
  25. func (gt EnterprisePvd) String() string {
  26. switch gt {
  27. case EnterprisePvdByCentralKitchenForSchool:
  28. return "央厨-学校"
  29. case EnterprisePvdByCentralKitchenForFactory:
  30. return "央厨-工厂"
  31. case EnterprisePvdBySelfSupportForSchool:
  32. return "自营-学校"
  33. case EnterprisePvdBySelfSupportForFactory:
  34. return "自营-工厂"
  35. case EnterprisePvdByNursingHome:
  36. return "养老院"
  37. default:
  38. return "未知"
  39. }
  40. }