package com.m2pool.common.log.service;

import com.m2pool.common.core.constant.SecurityConstants;
import com.m2pool.system.api.RemoteLogService;
import com.m2pool.system.api.entity.SysOperLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @Description 异步调用日志
 * @Date 2024/6/13 10:08
 * @Author dy
 */
@Service
public class AsyncLogService {

    @Autowired
    private RemoteLogService remoteLogService;

    /**
     * 保存系统日志记录
     */
    @Async
    public void saveSysLog(SysOperLog sysOperLog)
    {
        remoteLogService.saveLog(sysOperLog, SecurityConstants.INNER);
    }


}
