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.
|
- package enum
-
- // UserState 用户状态
- type UserState int
-
- const (
- UserStateForNormal UserState = iota + 1
- UserStateForFreeze
- )
-
- func (kind UserState) String() string {
- switch kind {
- case UserStateForNormal:
- return "正常"
- case UserStateForFreeze:
- return "冻结"
- default:
- return "未知状态"
- }
- }
|