feat(user): 修改status字段类型

This commit is contained in:
禾几海
2020-08-31 00:17:21 +08:00
parent 9f883d12df
commit 450b4a40bd
3 changed files with 15 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
package cn.celess.blog.enmu;
import java.util.Arrays;
/**
* @Author: 小海
* @Date: 2020-05-22 21:32
@@ -36,4 +38,13 @@ public enum UserAccountStatusEnum {
public String getDesc() {
return desc;
}
public static UserAccountStatusEnum get(int code) {
for (UserAccountStatusEnum value : UserAccountStatusEnum.values()) {
if (value.code == code) {
return value;
}
}
return null;
}
}