package jnpf.dmsController.search; import jakarta.validation.Valid; import jnpf.base.ActionResult; import jnpf.dmsEntity.search.form.DmsFullTextSearchForm; import jnpf.dmsEntity.search.vo.DmsFullTextSearchPageVO; import jnpf.dmsService.search.DmsFullTextSearchService; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.io.IOException; @RestController @RequestMapping @RequiredArgsConstructor public class DmsFullTextSearchController { private final DmsFullTextSearchService searchService; @PostMapping("/search") public ActionResult search( @RequestBody @Valid DmsFullTextSearchForm form) throws IOException { return ActionResult.success(searchService.search(form)); } }