package cn.reghao.tnb.data.app.service;

import cn.reghao.tnb.data.app.model.GatewayLog;
import cn.reghao.tnb.data.app.repository.GatewayLogRepository;
import org.springframework.stereotype.Service;

/**
 * @author reghao
 * @date 2024-11-20 16:41:21
 */
@Service
public class GatewayLogService {
    private final GatewayLogRepository gatewayLogRepository;

    public GatewayLogService(GatewayLogRepository gatewayLogRepository) {
        this.gatewayLogRepository = gatewayLogRepository;
    }

    public void saveGatewayLog(GatewayLog gatewayLog) {
        gatewayLogRepository.insert(gatewayLog).subscribe();
    }
}
