智慧食堂
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_nursing_home_user_with_day.go 1.1 KiB

1 年之前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. }