hahaha
This commit is contained in:
22
src/main/java/co/jp/app/service/PetService.java
Normal file
22
src/main/java/co/jp/app/service/PetService.java
Normal file
@ -0,0 +1,22 @@
|
||||
package co.jp.app.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import co.jp.app.entity.PetEntity;
|
||||
import co.jp.app.repository.PetRepository;
|
||||
|
||||
|
||||
@Service
|
||||
public class PetService {
|
||||
@Autowired
|
||||
private PetRepository dao;
|
||||
|
||||
public List<PetEntity> getPetByID(Iterable<Integer> id) {
|
||||
|
||||
return dao.findAllById(id);
|
||||
|
||||
}
|
||||
}
|
19
src/main/java/co/jp/app/service/erraService.java
Normal file
19
src/main/java/co/jp/app/service/erraService.java
Normal file
@ -0,0 +1,19 @@
|
||||
package co.jp.app.service;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import co.jp.app.entity.ErrorEntity;
|
||||
import co.jp.app.repository.erraRepository;
|
||||
|
||||
|
||||
@Service
|
||||
public class erraService {
|
||||
|
||||
@Autowired
|
||||
erraRepository erraDao;
|
||||
|
||||
public ErrorEntity getStatusById(int id) {
|
||||
return erraDao.getById(id);
|
||||
}
|
||||
}
|
25
src/main/java/co/jp/app/service/userService.java
Normal file
25
src/main/java/co/jp/app/service/userService.java
Normal file
@ -0,0 +1,25 @@
|
||||
package co.jp.app.service;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import co.jp.app.entity.UserEntity;
|
||||
import co.jp.app.repository.userRepository;
|
||||
|
||||
|
||||
@Service
|
||||
public class userService {
|
||||
|
||||
@Autowired
|
||||
userRepository userdao;
|
||||
|
||||
public UserEntity getNameByEntity(String name) {
|
||||
return userdao.getByName(name);
|
||||
|
||||
}
|
||||
|
||||
public UserEntity getEmailByEntity(String email) {
|
||||
return userdao.getByEmail(email);
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user