package com.fs.live.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fs.live.domain.LiveGoodsOrderItems;

/**
 * 订单商品Service接口
 * 
 * @author fs
 * @date 2025-01-17
 */
public interface ILiveGoodsOrderItemsService extends IService<LiveGoodsOrderItems>
{
    /**
     * 查询订单商品
     * 
     * @param id 订单商品主键
     * @return 订单商品
     */
    public LiveGoodsOrderItems selectLiveGoodsOrderItemsById(Long id);

    /**
     * 查询订单商品
     * @param id            订单ID
     * @param companyId     企业ID
     * @param companyUserId 企业用户ID
     * @return LiveGoodsOrderItems
     */
    LiveGoodsOrderItems selectLiveGoodsOrderItemsByIdAndCompanyIdAndCompanyUserId(Long id, Long companyId, Long companyUserId);

    /**
     * 查询订单商品列表
     * 
     * @param liveGoodsOrderItems 订单商品
     * @return 订单商品集合
     */
    public List<LiveGoodsOrderItems> selectLiveGoodsOrderItemsList(LiveGoodsOrderItems liveGoodsOrderItems);

    /**
     * 新增订单商品
     * 
     * @param liveGoodsOrderItems 订单商品
     * @return 结果
     */
    public int insertLiveGoodsOrderItems(LiveGoodsOrderItems liveGoodsOrderItems);

    /**
     * 修改订单商品
     * 
     * @param liveGoodsOrderItems 订单商品
     * @return 结果
     */
    public int updateLiveGoodsOrderItems(LiveGoodsOrderItems liveGoodsOrderItems);

    /**
     * 批量删除订单商品
     * 
     * @param ids 需要删除的订单商品主键集合
     * @return 结果
     */
    public int deleteLiveGoodsOrderItemsByIds(Long[] ids);

    /**
     * 删除订单商品信息
     * 
     * @param id 订单商品主键
     * @return 结果
     */
    public int deleteLiveGoodsOrderItemsById(Long id);
}
