package com.cpop.core.service;

import cn.dev33.satoken.session.SaSession;
import com.cpop.core.base.enums.OperationLogEnum;
import com.cpop.core.base.table.OperationLog;
import com.mybatisflex.core.service.IService;

/**
 * 操作日志表 服务层。
 *
 * @author DB
 * @since 2024-02-01
 */
public interface OperationLogService extends IService<OperationLog> {

    /**
     * 插入操作日志。
     * @author DB
     * @since 2024/2/2
     * @param status 状态
     * @param operationLogEnum 日志枚举
     * @param session 登陆用户session
     * @param failReason 失败原因
     * @return String 主键
     */
    String insertOperationLog(Integer status, OperationLogEnum operationLogEnum, SaSession session, String failReason);
}
