Subversion Repositories SmartDukaan

Rev

Rev 21545 | Rev 22925 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.repository.dtr;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.dao.entity.dtr.Otp;
import com.spice.profitmandi.dao.enumuration.dtr.OtpType;

@Repository
public interface OtpRepository {
        
        public Otp generateOtp(String email, String phone, OtpType otpType, String otp) throws ProfitMandiBusinessException;
        public List<Otp> getGeneratedOtpForCredentials(String email, OtpType otpType) throws ProfitMandiBusinessException;
        public void updateById(Otp otp) throws ProfitMandiBusinessException;
        public Otp getById(int id) throws ProfitMandiBusinessException;
}