蛋蛋星球-制度模式
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

user.go 314 B

1 개월 전
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. }