package com.reg.server.registration;

import org.apache.ibatis.annotations.Mapper;

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

@Mapper
public interface RegistrationMapper {

    int insert(Registration registration);

    Optional<Registration> findById(Long id);

    List<Registration> findAll();

    int update(Registration registration);

    int delete(Long id);

    List<Registration> findByCondition(Registration condition);
}