Skip to content

Commit

Permalink
refactor: service lombok 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
tsulocalize committed Oct 7, 2024
1 parent 9f42d00 commit a28d3f0
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,19 @@
import com.bang_ggood.station.domain.ChecklistStation;
import com.bang_ggood.station.dto.response.SubwayStationResponse;
import com.bang_ggood.station.repository.ChecklistStationRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.List;

@RequiredArgsConstructor
@Service
public class ChecklistStationService {

private final ChecklistStationRepository checklistStationRepository;
private final SubwayStationService subwayStationService;

public ChecklistStationService(ChecklistStationRepository checklistStationRepository, SubwayStationService subwayStationService) {
this.checklistStationRepository = checklistStationRepository;
this.subwayStationService = subwayStationService;
}

@Transactional
public void createChecklistStations(Checklist checklist, double latitude, double longitude) {
List<SubwayStationResponse> responses = subwayStationService.readNearestStation(latitude, longitude).getStations();
Expand Down

0 comments on commit a28d3f0

Please sign in to comment.