
package com.tmerclub.cloud.seckill.mapper;

import com.tmerclub.cloud.seckill.dto.SeckillStockPointSkuDTO;
import com.tmerclub.cloud.seckill.model.SeckillStockPointSku;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @author tmerclub
 * @date 2023-11-23 15:32:01
 */
public interface SeckillStockPointSkuMapper {

    /**
     * 获取列表
     * @return 列表
     */
    List<SeckillStockPointSku> list();

    /**
     * 根据id获取
     *
     * @param seckillStockPointSkuId id
     * @return
     */
    SeckillStockPointSku getBySeckillStockPointSkuId(@Param("seckillStockPointSkuId") Long seckillStockPointSkuId);

    /**
     * 保存
     * @param seckillStockPointSku
     */
    void save(@Param("seckillStockPointSku") SeckillStockPointSku seckillStockPointSku);

    /**
     * 更新
     * @param seckillStockPointSku
     */
    void update(@Param("seckillStockPointSku") SeckillStockPointSku seckillStockPointSku);

    /**
     * 根据id删除
     * @param seckillStockPointSkuId
     */
    void deleteById(@Param("seckillStockPointSkuId") Long seckillStockPointSkuId);

    /**
     * 批量保存
     * @param seckillStockPointSkuList
     */
    void batchSave(@Param("seckillStockPointSkuList") List<SeckillStockPointSkuDTO> seckillStockPointSkuList);
}
