package com.xmomen.module.system.service;


import com.xmomen.module.system.mapper.LogMapper;
import com.xmomen.module.system.model.LogModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Jeng on 16/3/20.
 */
@Service
public class LogService {

    // 注入LogMapper
    @Autowired
    LogMapper logMapper;

    // 事务注解
    @Transactional
    public void insertLog(LogModel logModel){
        // 调用LogMapper的insertLog方法，插入日志
        logMapper.insertLog(logModel);
    }
}
