package com.njcn.enums;

/**
 * @author hongawen
 * @Date: 2019/7/25 09:36
 */
public enum UserStatusEnum {

    DESTROY(0, "用户已注销"),
    NORMAL(1, "正常"),
    LOCKED(2, "用户已经被锁定"),
    UNCHECK(3, "用户未审核"),
    SLEEP(4, "用户已休眠"),
    OVERDUE(5, "用户密码已经过期"),
    FIRST_LOGIN(6, "用户首次登录"),
    ERROR_ACCOUNT(10, "用户名密码不匹配"),
    ERROR_IP(10, "IP地址异常"),
    ERROR_LOGIN_TIME(10, "用户不在规定时间范围内登录"),
    NO_SUB_SYSTEM(11, "联系管理员配置子系统"),
    ;

    private int code;

    private String message;

    UserStatusEnum(int code, String message) {
        this.code=code;
        this.message=message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
