Subversion Repositories SmartDukaan

Rev

Rev 21545 | Rev 22925 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21723 ashik.ali 1
package com.spice.profitmandi.dao.repository.dtr;
21545 ashik.ali 2
 
3
import java.util.List;
4
 
5
import org.springframework.stereotype.Repository;
6
 
7
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
21723 ashik.ali 8
import com.spice.profitmandi.dao.entity.dtr.Otp;
9
import com.spice.profitmandi.dao.enumuration.dtr.OtpType;
21545 ashik.ali 10
 
11
@Repository
12
public interface OtpRepository {
13
 
14
	public Otp generateOtp(String email, String phone, OtpType otpType, String otp) throws ProfitMandiBusinessException;
15
	public List<Otp> getGeneratedOtpForCredentials(String email, OtpType otpType) throws ProfitMandiBusinessException;
16
	public void updateById(Otp otp) throws ProfitMandiBusinessException;
17
	public Otp getById(int id) throws ProfitMandiBusinessException;
18
}