package com.zyc.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zyc.system.mapper.KunpengDesktopCloudHostsMapper;
import com.zyc.system.domain.KunpengDesktopCloudHosts;
import com.zyc.system.service.IKunpengDesktopCloudHostsService;

/**
 * 鲲鹏桌面云主机Service业务层处理
 * 
 * @author zyc
 * @date 2024-12-26
 */
@Service
public class KunpengDesktopCloudHostsServiceImpl implements IKunpengDesktopCloudHostsService 
{
    @Autowired
    private KunpengDesktopCloudHostsMapper kunpengDesktopCloudHostsMapper;

    /**
     * 查询鲲鹏桌面云主机
     * 
     * @param id 鲲鹏桌面云主机主键
     * @return 鲲鹏桌面云主机
     */
    @Override
    public KunpengDesktopCloudHosts selectKunpengDesktopCloudHostsById(Integer id)
    {
        return kunpengDesktopCloudHostsMapper.selectKunpengDesktopCloudHostsById(id);
    }

    /**
     * 查询鲲鹏桌面云主机列表
     * 
     * @param kunpengDesktopCloudHosts 鲲鹏桌面云主机
     * @return 鲲鹏桌面云主机
     */
    @Override
    public List<KunpengDesktopCloudHosts> selectKunpengDesktopCloudHostsList(KunpengDesktopCloudHosts kunpengDesktopCloudHosts)
    {
        return kunpengDesktopCloudHostsMapper.selectKunpengDesktopCloudHostsList(kunpengDesktopCloudHosts);
    }

    /**
     * 新增鲲鹏桌面云主机
     * 
     * @param kunpengDesktopCloudHosts 鲲鹏桌面云主机
     * @return 结果
     */
    @Override
    public int insertKunpengDesktopCloudHosts(KunpengDesktopCloudHosts kunpengDesktopCloudHosts)
    {
        return kunpengDesktopCloudHostsMapper.insertKunpengDesktopCloudHosts(kunpengDesktopCloudHosts);
    }

    /**
     * 修改鲲鹏桌面云主机
     * 
     * @param kunpengDesktopCloudHosts 鲲鹏桌面云主机
     * @return 结果
     */
    @Override
    public int updateKunpengDesktopCloudHosts(KunpengDesktopCloudHosts kunpengDesktopCloudHosts)
    {
        return kunpengDesktopCloudHostsMapper.updateKunpengDesktopCloudHosts(kunpengDesktopCloudHosts);
    }

    /**
     * 批量删除鲲鹏桌面云主机
     * 
     * @param ids 需要删除的鲲鹏桌面云主机主键
     * @return 结果
     */
    @Override
    public int deleteKunpengDesktopCloudHostsByIds(Integer[] ids)
    {
        return kunpengDesktopCloudHostsMapper.deleteKunpengDesktopCloudHostsByIds(ids);
    }

    /**
     * 删除鲲鹏桌面云主机信息
     * 
     * @param id 鲲鹏桌面云主机主键
     * @return 结果
     */
    @Override
    public int deleteKunpengDesktopCloudHostsById(Integer id)
    {
        return kunpengDesktopCloudHostsMapper.deleteKunpengDesktopCloudHostsById(id);
    }
}
