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

47 строки
1.1 KiB

  1. package enum
  2. type NursingHomeUserWithDayKind int32
  3. const (
  4. NursingHomeUserWithDayKindForBreakfast = 1
  5. NursingHomeUserWithDayKindForLunch = 2
  6. NursingHomeUserWithDayKindForDinner = 3
  7. )
  8. func (gt NursingHomeUserWithDayKind) String() string {
  9. switch gt {
  10. case NursingHomeUserWithDayKindForBreakfast:
  11. return "早餐"
  12. case NursingHomeUserWithDayKindForLunch:
  13. return "午餐"
  14. case NursingHomeUserWithDayKindForDinner:
  15. return "晚餐"
  16. default:
  17. return "未知"
  18. }
  19. }
  20. type NursingHomeUserWithDayState int32
  21. const (
  22. NursingHomeUserWithDayStateForWait = 1
  23. NursingHomeUserWithDayStateForAlready = 2
  24. NursingHomeUserWithDayStateForCanceling = 3
  25. NursingHomeUserWithDayStateForCancel = 4
  26. )
  27. func (gt NursingHomeUserWithDayState) String() string {
  28. switch gt {
  29. case NursingHomeUserWithDayStateForWait:
  30. return "待就餐"
  31. case NursingHomeUserWithDayStateForAlready:
  32. return "已就餐"
  33. case NursingHomeUserWithDayStateForCanceling:
  34. return "退款中"
  35. case NursingHomeUserWithDayStateForCancel:
  36. return "已退款"
  37. default:
  38. return "未知"
  39. }
  40. }