package com.ruoyi.system.service.impl;

import com.ruoyi.common.biz.BaseServiceImpl;
import com.ruoyi.system.mapper.SysDeviceCommandMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.domain.SysDeviceCommand;
import com.ruoyi.system.service.ISysDeviceCommandService;
import org.springframework.transaction.annotation.Transactional;
import reactor.core.publisher.Mono;

/**
 * 设备命令Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-14
 */
@Service
public class SysDeviceCommandServiceImpl
	extends BaseServiceImpl<SysDeviceCommand, Long, SysDeviceCommandMapper>
	implements ISysDeviceCommandService
{
    /**
     * 新增设备命令
     *
     * @param sysDeviceCommand 设备命令
     * @return 结果
     */
    @Transactional
    @Override
    public Mono<Long> insert(SysDeviceCommand sysDeviceCommand)
    {
        return mapper.insert(sysDeviceCommand);
    }

    /**
     * 修改设备命令
     *
     * @param sysDeviceCommand 设备命令
     * @return 结果
     */
    @Transactional
    @Override
    public Mono<Long> update(SysDeviceCommand sysDeviceCommand)
    {
        return mapper.update(sysDeviceCommand);
    }
}
