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_operation_log的status字段
 *
 * @author valarchie
 */
@Dictionary(name = "sysOperationLog.status")
@Getter
@AllArgsConstructor
public enum OperationStatusEnum implements DictionaryEnum<Integer> {

    /**
     * 操作状态
     */
    SUCCESS(1, "成功", CssTag.PRIMARY),
    FAIL(0, "失败", CssTag.DANGER);

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

}
