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

56 lines
1.1 KiB

  1. package enum
  2. type FactoryIdentityState int32
  3. const (
  4. FactoryIdentityStateForNormal = 1
  5. FactoryIdentityStateForFreeze = 2
  6. )
  7. func (gt FactoryIdentityState) String() string {
  8. switch gt {
  9. case FactoryIdentityStateForNormal:
  10. return "正常"
  11. case FactoryIdentityStateForFreeze:
  12. return "冻结"
  13. default:
  14. return "未知"
  15. }
  16. }
  17. type FactoryIdentityIsSubsidy int32
  18. const (
  19. FactoryIdentityIsSubsidyForNo = 0
  20. FactoryIdentityIsSubsidyForYes = 1
  21. )
  22. func (gt FactoryIdentityIsSubsidy) String() string {
  23. switch gt {
  24. case FactoryIdentityIsSubsidyForNo:
  25. return "不开启优惠补贴"
  26. case FactoryIdentityIsSubsidyForYes:
  27. return "开启优惠补贴"
  28. default:
  29. return "未知"
  30. }
  31. }
  32. type FactoryIdentityIsLimitConsumeNum int32
  33. const (
  34. FactoryIdentityIsLimitConsumeNumForNo = 0
  35. FactoryIdentityIsLimitConsumeNumForYes = 1
  36. )
  37. func (gt FactoryIdentityIsLimitConsumeNum) String() string {
  38. switch gt {
  39. case FactoryIdentityIsSubsidyForNo:
  40. return "不限制消费次数"
  41. case FactoryIdentityIsSubsidyForYes:
  42. return "限制消费次数"
  43. default:
  44. return "未知"
  45. }
  46. }