20 lines
388 B
Java
20 lines
388 B
Java
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 erraRepository;
|
|
|
|
public ErrorEntity getStatusById(int id) {
|
|
return erraRepository.getById(id);
|
|
}
|
|
}
|