package com.agileboot.common.core.enums.common;

import com.agileboot.common.core.enums.DictionaryEnum;
import com.agileboot.common.core.enums.dictionary.CssTag;
import com.agileboot.common.core.enums.dictionary.Dictionary;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 对应sys_user的status字段
 *
 * @author valarchie
 */
@AllArgsConstructor
@Getter
@Dictionary(name = "sysUser.status")
public enum UserStatusEnum implements DictionaryEnum<Integer> {

    /**
     * 用户账户状态
     */
    NORMAL(1, "正常", CssTag.PRIMARY),
    DISABLED(2, "禁用", CssTag.DANGER),
    FROZEN(3, "冻结", CssTag.WARNING);

    private final Integer value;
    private final String desc;
    private final String cssTag;
}
