蛋蛋星球-制度模式
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.

5 dagen geleden
1234567891011121314151617181920
  1. package enum
  2. // UserState 用户状态
  3. type UserState int
  4. const (
  5. UserStateForNormal UserState = iota + 1
  6. UserStateForFreeze
  7. )
  8. func (kind UserState) String() string {
  9. switch kind {
  10. case UserStateForNormal:
  11. return "正常"
  12. case UserStateForFreeze:
  13. return "冻结"
  14. default:
  15. return "未知状态"
  16. }
  17. }