T - 枚举值类型,通常是Integer或Stringpublic interface BaseEnum<T>
public enum UserInfoType implements BaseEnum<String>{
INVALID("0"),VALID("1")
;
private String status;
UserInfoType(String type) {
this.status = type;
}
public String getCode() {
return status;
}
}
T getCode()
Copyright © 2021. All Rights Reserved.