clean up with constants

This commit is contained in:
heyethereum
2024-07-18 08:28:10 +08:00
parent 686c4f939e
commit b966597ca6
8 changed files with 35 additions and 27 deletions

View File

@@ -16,8 +16,8 @@ public class EmailVerificationService {
public EmailVerificationService(EmailRepository emailRepository) {
this.emailRepository = emailRepository;
}
public void insertDB(EmailEntity EmailEntity) {
emailRepository.save(EmailEntity);
public void insertDB(EmailEntity emailEntity) {
emailRepository.save(emailEntity);
}
}

View File

@@ -16,8 +16,8 @@ public class PhoneVerificationService {
public PhoneVerificationService(PhoneRepository phoneRepository) {
this.phoneRepository = phoneRepository;
}
public void insertDB(PhoneEntity PhoneEntity) {
phoneRepository.save(PhoneEntity);
public void insertDB(PhoneEntity phoneEntity) {
phoneRepository.save(phoneEntity);
}
}

View File

@@ -16,8 +16,8 @@ public class SMSVerificationService {
public SMSVerificationService(SMSRepository smsRepository) {
this.smsRepository = smsRepository;
}
public void insertDB(SMSEntity SMSEntity) {
smsRepository.save(SMSEntity);
public void insertDB(SMSEntity smsEntity) {
smsRepository.save(smsEntity);
}
}

View File

@@ -10,7 +10,7 @@ import org.springframework.stereotype.Service;
@Service
public class TextVerificationService {
private final TextRepository textRepository;
private static final Logger logger = LoggerFactory.getLogger(TextVerificationService.class);
@Autowired
public TextVerificationService(TextRepository textRepository) {
this.textRepository = textRepository;
@@ -18,5 +18,5 @@ public class TextVerificationService {
public void insertDB(TextEntity textEntity) {
textRepository.save(textEntity);
}
private static final Logger logger = LoggerFactory.getLogger(TextVerificationService.class);
}

View File

@@ -16,8 +16,8 @@ public class WifiVerificationService {
public WifiVerificationService(WifiRepository wifiRepository) {
this.wifiRepository = wifiRepository;
}
public void insertDB(WifiEntity WifiEntity) {
wifiRepository.save(WifiEntity);
public void insertDB(WifiEntity wifiEntity) {
wifiRepository.save(wifiEntity);
}
}