package im.zhaojun.system.service;

import com.github.pagehelper.PageHelper;
import im.zhaojun.common.shiro.realm.UserNameRealm;
import im.zhaojun.system.mapper.*;
import im.zhaojun.system.model.Alarm;
import im.zhaojun.system.model.Role;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AlarmService {

    @Resource
    private AlarmMapper alarmMapper;


    @Transactional
    public int add(Alarm alarm) {
        return alarmMapper.insert(alarm);
    }


}