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;

/**
 * 系统内代表是与否的枚举
 *
 * @author valarchie
 */
@Dictionary(name = "common.yesOrNo")
@Getter
@AllArgsConstructor
public enum YesOrNoEnum implements DictionaryEnum<Integer> {
    /**
     * 是与否
     */
    YES(1, "是", CssTag.PRIMARY),
    NO(0, "否", CssTag.DANGER);

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

}
