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.
54 lines
1.0 KiB
54 lines
1.0 KiB
package com.hfkj.sysenum;
|
|
|
|
import java.util.Objects;
|
|
|
|
/**
|
|
* 登录平台
|
|
* @className: LoginType
|
|
* @author: HuRui
|
|
* @date: 2022/10/20
|
|
**/
|
|
public enum UserLoginPlatform {
|
|
H5("H5", "H5客户端"),
|
|
WXAPPLETS("WXAPPLETS", "普汇GO"),
|
|
VFAMILY("VFAMILY", "V家园"),
|
|
GZGOV("GZGOV", "省自机关"),
|
|
;
|
|
|
|
private String code;
|
|
|
|
private String name;
|
|
|
|
UserLoginPlatform(String code, String name) {
|
|
this.code = code;
|
|
this.name = name;
|
|
}
|
|
|
|
/**
|
|
* 根据类型查询数据
|
|
* @param code
|
|
* @return
|
|
*/
|
|
public static UserLoginPlatform getDataByType(String code) {
|
|
for (UserLoginPlatform ele : values()) {
|
|
if(Objects.equals(code,ele.getCode())) return ele;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public String getCode() {
|
|
return code;
|
|
}
|
|
|
|
public void setCode(String code) {
|
|
this.code = code;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
}
|
|
|