Subversion Repositories SmartDukaan

Rev

Rev 22925 | Rev 23418 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22925 Rev 23269
Line 4... Line 4...
4
 
4
 
5
import org.springframework.stereotype.Repository;
5
import org.springframework.stereotype.Repository;
6
 
6
 
7
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
7
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
8
import com.spice.profitmandi.dao.entity.dtr.Otp;
8
import com.spice.profitmandi.dao.entity.dtr.Otp;
9
import com.spice.profitmandi.dao.enumuration.dtr.OtpType;
-
 
10
 
9
 
11
@Repository
10
@Repository
12
public interface OtpRepository {
11
public interface OtpRepository {
13
	
-
 
14
	public Otp generateOtp(String email, String phone, OtpType otpType, String otp);
12
	public void persist(Otp otp);
15
	public List<Otp> getGeneratedOtpForCredentials(String email, OtpType otpType);
13
	public List<Otp> selectAllByEmailWithTime(String email);
16
	public void update(Otp otp);
-
 
17
	public Otp getById(int id) throws ProfitMandiBusinessException;
14
	public Otp getById(int id) throws ProfitMandiBusinessException;
18
}
15
}