智慧食堂
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.

enum_enterprise.go 889 B

1 vuosi sitten
12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. }