added other types of qrcodes like phone, sms, email, wifi
This commit is contained in:
@@ -1,10 +1,22 @@
|
||||
package com.safeqr.app.qrcode.service;
|
||||
|
||||
import com.safeqr.app.qrcode.entity.TextEntity;
|
||||
import com.safeqr.app.qrcode.repository.TextRepository;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class TextVerificationService {
|
||||
private final TextRepository textRepository;
|
||||
|
||||
@Autowired
|
||||
public TextVerificationService(TextRepository textRepository) {
|
||||
this.textRepository = textRepository;
|
||||
}
|
||||
public void insertDB(TextEntity textEntity) {
|
||||
textRepository.save(textEntity);
|
||||
}
|
||||
private static final Logger logger = LoggerFactory.getLogger(TextVerificationService.class);
|
||||
}
|
||||
Reference in New Issue
Block a user