This commit is contained in:
2025-05-07 12:33:46 +09:00
commit 995676ae5d
25 changed files with 991 additions and 0 deletions

View 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);
}
}

View 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);
}
}

View 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);
}
}