/**
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
*
|
* https://www.renren.io
|
*
|
* 版权所有,侵权必究!
|
*/
|
|
package com.zt.modules.sys.enums;
|
|
import com.zt.common.annotation.Dictionary;
|
import com.zt.common.constant.IDictionary;
|
|
/**
|
* 用户状态
|
*
|
* @author hehz
|
* @since 1.0.0
|
*/
|
@Dictionary(type = "user_status", name = "用户状态")
|
public enum UserStatus implements IDictionary {
|
|
ENABLE(1, "有效"), DISABLE(0, "无效");
|
|
private Integer value;
|
private String name;
|
|
UserStatus(int value, String name) {
|
this.value = value;
|
this.name = name;
|
}
|
|
@Override
|
public Integer getValue() {
|
return value;
|
}
|
|
@Override
|
public String getName() {
|
return name;
|
}
|
}
|