|
|
@ -3,7 +3,6 @@ package cokr.xit.ens.modules.nice.presentation;
|
|
|
|
import org.springframework.http.*;
|
|
|
|
import org.springframework.http.*;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
|
|
import cokr.xit.ens.modules.nice.model.*;
|
|
|
|
|
|
|
|
import cokr.xit.ens.modules.nice.service.*;
|
|
|
|
import cokr.xit.ens.modules.nice.service.*;
|
|
|
|
import io.swagger.v3.oas.annotations.*;
|
|
|
|
import io.swagger.v3.oas.annotations.*;
|
|
|
|
import io.swagger.v3.oas.annotations.tags.*;
|
|
|
|
import io.swagger.v3.oas.annotations.tags.*;
|
|
|
@ -32,19 +31,19 @@ public class NiceCiController {
|
|
|
|
private final NiceCiAcceptService niceCiAcceptService;
|
|
|
|
private final NiceCiAcceptService niceCiAcceptService;
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "접수")
|
|
|
|
@Operation(summary = "접수")
|
|
|
|
@PostMapping(value = "/accept", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
@PostMapping(value = "/accept/all", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
public ResponseEntity<?> accept(final NiceCiDTO.NiceCiParam niceCiParam) {
|
|
|
|
public ResponseEntity<?> accept() {
|
|
|
|
return new ResponseEntity<>(niceCiAcceptService.accept(niceCiParam), HttpStatus.OK);
|
|
|
|
return new ResponseEntity<>(niceCiAcceptService.accept(), HttpStatus.OK);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "(대량)전송요청")
|
|
|
|
@Operation(summary = "(대량)전송요청")
|
|
|
|
@PostMapping(value = "/send/bulk", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
@PostMapping(value = "/send/bulk/all", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
public ResponseEntity<?> sendBulk() {
|
|
|
|
public ResponseEntity<?> sendBulk() {
|
|
|
|
return new ResponseEntity<>(niceCiService.requestSendBulk(), HttpStatus.OK);
|
|
|
|
return new ResponseEntity<>(niceCiService.requestSendBulk(), HttpStatus.OK);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "(대량)상태조회")
|
|
|
|
@Operation(summary = "(대량)상태조회")
|
|
|
|
@PostMapping(value = "/status/bulk", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
@PostMapping(value = "/stat/bulk/all", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
public ResponseEntity<?> findBulkStatus() {
|
|
|
|
public ResponseEntity<?> findBulkStatus() {
|
|
|
|
return new ResponseEntity<>(niceCiService.findBulkStatus(), HttpStatus.OK);
|
|
|
|
return new ResponseEntity<>(niceCiService.findBulkStatus(), HttpStatus.OK);
|
|
|
|
}
|
|
|
|
}
|
|
|
|