package com.handong.smartservice.component;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.handong.smartservice.mapper.BizGroupMapper;
import com.handong.smartservice.mapper.OperatingHistoryMapper;

@Component
public class DbLogger {
    private static OperatingHistoryMapper operatingHistoryMapper;

    @Autowired
    public DbLogger(OperatingHistoryMapper mapper){
        DbLogger.operatingHistoryMapper = mapper;
    }

    public static void insert(Long type, String action, Long gid) {
        operatingHistoryMapper.insertOperatingHistory(type, action, gid);
    }    
}
