package com.ruoyi.ss.deviceSuit.service;

import com.ruoyi.ss.deviceSuit.domain.DeviceSuit;
import com.ruoyi.ss.deviceSuit.domain.DeviceSuitQuery;
import com.ruoyi.ss.deviceSuit.domain.DeviceSuitVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备套餐关联Service接口
 *
 * @author ruoyi
 * @date 2024-07-31
 */
public interface DeviceSuitService
{
    /**
     * 查询设备套餐关联
     *
     * @param id 设备套餐关联主键
     * @return 设备套餐关联
     */
    public DeviceSuitVO selectDeviceSuitById(Long id);

    /**
     * 查询设备套餐关联列表
     *
     * @param query 设备套餐关联
     * @return 设备套餐关联集合
     */
    public List<DeviceSuitVO> selectDeviceSuitList(@Param("query") DeviceSuitQuery query);

    /**
     * 新增设备套餐关联
     *
     * @param deviceSuit 设备套餐关联
     * @return 结果
     */
    public int insertDeviceSuit(DeviceSuit deviceSuit);

    /**
     * 修改设备套餐关联
     *
     * @param deviceSuit 设备套餐关联
     * @return 结果
     */
    public int updateDeviceSuit(@Param("data") DeviceSuit deviceSuit);

    /**
     * 批量删除设备套餐关联
     *
     * @param ids 需要删除的设备套餐关联主键集合
     * @return 结果
     */
    public int deleteDeviceSuitByIds(Long[] ids);

    /**
     * 删除设备套餐关联信息
     *
     * @param id 设备套餐关联主键
     * @return 结果
     */
    public int deleteDeviceSuitById(Long id);

    /**
     * 批量新增
     */
    int batchInsert(List<DeviceSuit> list);

    /**
     * 根据套餐ID删除关联
     */
    int deleteBySuitId(Long suitId);

    /**
     * 根据套餐ID列表删除关联
     */
    int deleteBySuitIds(List<Long> suitIds);

    /**
     * 根据设备ID删除关联
     */
    int deleteByDeviceId(Long deviceId);

    /**
     * 根据设备ID列表删除关联
     */
    int deleteByDeviceIds(List<Long> deviceIds);
}
