package com.sikey.wa04.business.infrastructure.repository;

import com.sikey.wa04.business.infrastructure.dto.model.MessageSendModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;
import java.util.Optional;

/**
 * MessageSendRepository
 */
@Repository
public interface MessageSendRepository extends JpaRepository<MessageSendModel, Long> {
    List<MessageSendModel> findByIdIn(Collection<Long> ids);

    void deleteBySendIdIn(List<String> sendIds);

    Optional<MessageSendModel> findById(Long id);
}
