刘光辉
5 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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<DmsFullTextSearchPageVO> search(
            @RequestBody @Valid DmsFullTextSearchForm form) throws IOException {
        return ActionResult.success(searchService.search(form));
    }
}