package com.cpop.core.base.enums;

import lombok.Getter;

/**
 * @author DB
 * @Description:
 * @create: 2023-08-26 18:52
 */
@Getter
public enum OperationLogEnum {
    /**
     * 系统登录
     */
    SYSTEM_LOGIN(0, "i18n_operationLog_systemLogin", "SystemLoginModel", 6, 4),
    /**
     * 系统用户退出登录
     */
    SYSTEM_LOGOUT(1, "i18n_operationLog_systemLogout", "SystemLoginModel", 6, 4),

    ;

    /**
     * 操作码
     */
    private final Integer code;
    /**
     * 操作信息
     */
    private final String info;
    /**
     * 操作模块
     */
    private final String operationModel;

    /**
     * 7-调试，6-信息，5-通知，4-警告,3-错误，2-关键，1-报警,0-紧急
     * 成功行为等级
     */
    private final Integer successLevel;

    /**
     * 7-调试，6-信息，5-通知，4-警告,3-错误，2-关键，1-报警,0-紧急
     * 异常行为等级
     */
    private final Integer exceptionLevel;

    OperationLogEnum(Integer code, String info, String operationModel, Integer successLevel, Integer exceptionLevel) {
        this.code = code;
        this.info = info;
        this.operationModel = operationModel;
        this.successLevel = successLevel;
        this.exceptionLevel = exceptionLevel;
    }

}
