package cn.iocoder.yudao.module.system.api.DeviceMoney;

import cn.hutool.core.bean.BeanUtil;
import cn.iocoder.yudao.module.system.api.DeviceMoney.dto.DeviceMoneyDto;
import cn.iocoder.yudao.module.system.dal.dataobject.devicemoney.DeviceMoneyDO;
import cn.iocoder.yudao.module.system.dal.mysql.devicemoney.DeviceMoneyMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author:qjq
 * @Date:2024/4/15 上午11:19
 */
@Service
public class DeviceMoneyApiImpl implements DeviceMoneyApi{
    @Resource
    private DeviceMoneyMapper deviceMoneyMapper;
    @Override
    public int insertDeviceMoney(DeviceMoneyDto createReqVO) {
      return   deviceMoneyMapper.insert(BeanUtil.toBean(createReqVO, DeviceMoneyDO.class));
    }
}
