반응형
private final $DOMAIN$ApplicationService $DOMAIN2$ApplicationService;
@GetMapping(value = "/list", name = "$TITLE$ 목록 조회")
public $DOMAIN$ListResponse list(@Valid @QueryStringArgResolver $DOMAIN$ListRequest request) {
return $DOMAIN2$ApplicationService.$DOMAIN2$List(request);
}
@GetMapping(value = "/view/{$UNIQUENUMBER$Id}", name = "$TITLE$ 단일 조회")
public $DOMAIN$ViewResponse view(@PathVariable @Min(value = 1) int $UNIQUENUMBER$Id) {
return $DOMAIN2$ApplicationService.$DOMAIN2$View($UNIQUENUMBER$Id);
}
@PostMapping(value = "/add", name = "$TITLE$ 추가")
public $DOMAIN$AddResponse add(@Valid @RequestBody $DOMAIN$AddRequest request) {
return $DOMAIN2$ApplicationService.$DOMAIN2$Add(request);
}
@PutMapping(value = "/edit", name = "$TITLE$ 수정")
public SuccessResponse edit(@Valid @RequestBody $DOMAIN$EditRequest request) {
$DOMAIN2$ApplicationService.$DOMAIN2$Edit(request);
return new SuccessResponse();
}
@DeleteMapping(value = "/delete/{$UNIQUENUMBER$Id}", name = "$TITLE$ 삭제")
public SuccessResponse delete(@PathVariable @Min(value = 1) int $UNIQUENUMBER$Id) {
$DOMAIN2$ApplicationService.$DOMAIN2$Delete($UNIQUENUMBER$Id);
return new SuccessResponse();
}
반응형