package im.dx.system.service;

import im.dx.system.mapper.*;
import im.dx.system.model.Alarm;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class AlarmService {

    @Resource
    private AlarmMapper alarmMapper;


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


}