智慧食堂
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
273 B

  1. package enum
  2. type AdminState int32
  3. const (
  4. AdminStateForNormal = 1
  5. AdminStateForFreeze = 2
  6. )
  7. func (gt AdminState) String() string {
  8. switch gt {
  9. case AdminStateForNormal:
  10. return "正常"
  11. case AdminStateForFreeze:
  12. return "冻结"
  13. default:
  14. return "未知"
  15. }
  16. }