2025-05-07 12:33:46 +09:00
|
|
|
package co.jp.app.service;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import co.jp.app.entity.ErrorEntity;
|
2025-05-08 15:50:04 +09:00
|
|
|
import co.jp.app.repository.ErrRepository;
|
2025-05-07 12:33:46 +09:00
|
|
|
|
|
|
|
|
|
|
|
@Service
|
2025-05-07 17:56:35 +09:00
|
|
|
public class ErraService {
|
2025-05-07 12:33:46 +09:00
|
|
|
|
|
|
|
@Autowired
|
2025-05-08 15:50:04 +09:00
|
|
|
ErrRepository erraRepository;
|
2025-05-07 12:33:46 +09:00
|
|
|
|
|
|
|
public ErrorEntity getStatusById(int id) {
|
2025-05-08 11:26:28 +09:00
|
|
|
return erraRepository.getById(id);
|
2025-05-07 12:33:46 +09:00
|
|
|
}
|
|
|
|
}
|