You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.6 KiB
Java
61 lines
1.6 KiB
Java
package com.manual.controller;
|
|
|
|
import com.worker.scheduler.smg.schedule.SinmungoInOutScheduler;
|
|
import com.worker.scheduler.update.schedule.WarSyncScheduler;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.http.ResponseEntity;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import java.io.IOException;
|
|
|
|
@Slf4j
|
|
@RestController
|
|
@RequiredArgsConstructor
|
|
public class RunController {
|
|
|
|
private final WarSyncScheduler warSyncScheduler;
|
|
private final SinmungoInOutScheduler sinmungoInOutScheduler;
|
|
|
|
|
|
@PostMapping("/menual/update-war")
|
|
public ResponseEntity<?> updateWar() throws IOException {
|
|
|
|
warSyncScheduler.checkAndDeploy();
|
|
|
|
return ResponseEntity.ok("Success");
|
|
}
|
|
|
|
@PostMapping("/menual/sinmungo-polling")
|
|
public ResponseEntity<?> sinmungoPolling() throws IOException {
|
|
|
|
sinmungoInOutScheduler.sinmungoInOutScheduler();
|
|
|
|
return ResponseEntity.ok("Success");
|
|
}
|
|
|
|
@PostMapping("/menual/sinmungo-send-answer")
|
|
public ResponseEntity<?> sinmungoSendAnswer() throws IOException {
|
|
|
|
sinmungoInOutScheduler.sinmungoAnswerSendScheduler();
|
|
|
|
return ResponseEntity.ok("Success");
|
|
}
|
|
|
|
@PostMapping("/menual/restart-parking-app")
|
|
public ResponseEntity<?> restartParkingApp() throws IOException {
|
|
|
|
// 클린파킹 수동 실행
|
|
|
|
|
|
return ResponseEntity.ok("Success");
|
|
}
|
|
|
|
@PostMapping("/menual/tax-sunap")
|
|
public ResponseEntity<?> taxSunap() throws IOException {
|
|
|
|
return ResponseEntity.ok("Success");
|
|
}
|
|
}
|