Defines supported membership platform types for user account management. Use this to categorize and validate platform-specific user data in member systems.
// Source: https://github.com/lsl08/yiran | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
*
*/
package com.yiran.member.enums;
/**
* <p>会员平台类型枚举,只定义默认类型,其它类型在配置表中</p>
*/
public enum PlatFormTypeEnum {
//默认钱包
DEFAULT(0,"钱包平台"),UID(1,"UID");
/** 代码 */
private final int code;
/** 信息 */
private final String message;
private PlatFormTypeEnum(int code, String message) {
this.code = code;
this.message = message;
}
/**
* 通过代码获取枚举项
* @param code
* @return
*/
public static PlatFormTypeEnum getByCode(int code) {
for (PlatFormTypeEnum aa : PlatFormTypeEnum.values()) {
if (aa.code
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key