智慧食堂
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

44 строки
889 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. )
  24. func (gt EnterprisePvd) String() string {
  25. switch gt {
  26. case EnterprisePvdByCentralKitchenForSchool:
  27. return "央厨-学校"
  28. case EnterprisePvdByCentralKitchenForFactory:
  29. return "央厨-工厂"
  30. case EnterprisePvdBySelfSupportForSchool:
  31. return "自营-学校"
  32. case EnterprisePvdBySelfSupportForFactory:
  33. return "自营-工厂"
  34. default:
  35. return "未知"
  36. }
  37. }