fix api post drp
This commit is contained in:
@ -1,10 +1,13 @@
|
||||
package com.iconplus.smartproc.controller;
|
||||
|
||||
import com.iconplus.smartproc.model.request.DrpPengadaanRequest;
|
||||
import com.iconplus.smartproc.model.request.DrpRequest;
|
||||
import com.iconplus.smartproc.model.response.DrpPengadaanResponse;
|
||||
import com.iconplus.smartproc.model.response.DrpResponse;
|
||||
import com.iconplus.smartproc.model.response.GetListDrpResponse;
|
||||
import com.iconplus.smartproc.service.drp.GetDrpService;
|
||||
import com.iconplus.smartproc.service.drp.GetListDrpService;
|
||||
import com.iconplus.smartproc.service.drp.PostCreateDrpPengadaanService;
|
||||
import com.iconplus.smartproc.service.drp.PostCreateDrpService;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
@ -18,13 +21,16 @@ public class DrpController {
|
||||
private final GetDrpService getDrpService;
|
||||
private final GetListDrpService getListDrpService;
|
||||
private final PostCreateDrpService postCreateDrpService;
|
||||
private final PostCreateDrpPengadaanService postCreateDrpPengadaanService;
|
||||
|
||||
public DrpController(GetDrpService getDrpService,
|
||||
GetListDrpService getListDrpService,
|
||||
PostCreateDrpService postCreateDrpService) {
|
||||
PostCreateDrpService postCreateDrpService,
|
||||
PostCreateDrpPengadaanService postCreateDrpPengadaanService) {
|
||||
this.getDrpService = getDrpService;
|
||||
this.getListDrpService = getListDrpService;
|
||||
this.postCreateDrpService = postCreateDrpService;
|
||||
this.postCreateDrpPengadaanService = postCreateDrpPengadaanService;
|
||||
}
|
||||
|
||||
@GetMapping
|
||||
@ -53,4 +59,14 @@ public class DrpController {
|
||||
return postCreateDrpService.execute(drpRequest);
|
||||
}
|
||||
|
||||
@PostMapping("/pengadaan")
|
||||
public DrpPengadaanResponse createDrpPengadaan(@RequestBody DrpPengadaanRequest drpPengadaanRequest) {
|
||||
return postCreateDrpPengadaanService.execute(drpPengadaanRequest);
|
||||
}
|
||||
|
||||
@GetMapping("/pengadaan")
|
||||
public DrpPengadaanResponse getDrpPengadaan(@RequestBody DrpPengadaanRequest drpPengadaanRequest) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user