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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package enums ;
public enum UserBadgeEnum {
//贡献者 三位数字, 以1开头
CONTRIBUTOR ( 1 , "贡献者" ) ,
CONTRIBUTOR_FOUNDER ( 100 , "创始人" ) ,
CONTRIBUTOR_PRODUCT_MANAGER ( 101 , "产品经理" ) ,
CONTRIBUTOR_EXPERIENCE_DESIGNER ( 102 , "体验设计师" ) ,
CONTRIBUTOR_BACKEND ( 103 , "服务端" ) ,
CONTRIBUTOR_QUALITY_ASSURANCE ( 104 , "测试工程师" ) ,
CONTRIBUTOR_PROJECT_MANAGER ( 105 , "项目管理" ) ,
CONTRIBUTOR_ANDROID_FRONTEND ( 106 , "Android前端" ) ,
CONTRIBUTOR_IOS_FRONTEND ( 107 , "IOS前端" ) ,
CONTRIBUTOR_PRODUCT_OPERATION ( 108 , "产品运营" ) ;
private Integer code ;
private String desc ;
UserBadgeEnum ( Integer code , String desc ) {
this . code = code ;
this . desc = desc ;
}
public static UserBadgeEnum getByCode ( Integer code ) {
for ( UserBadgeEnum item : UserBadgeEnum . values ( ) ) {
if ( item . getCode ( ) . equals ( code ) ) {
return item ;
}
}
return null ;
}
public Integer getCode ( ) {
return code ;
}
public String getDesc ( ) {
return desc ;
}
public void setDesc ( String desc ) {
this . desc = desc ;
}
}