学成在线项目https://www.bilibili.com/video/BV1v7411Y729?p=21
页面查询接口定义如下:
public interface CmsPageControllerApi { public QueryResponseResult findList(int page, int size, QueryPageRequest queryPageRequest) ; }
在xc-service-manage-cms模块中的CmsPageController定义上面接口的实现类如下:
@RestController @RequestMapping("/cms/page") public class CmsPageController implements CmsPageControllerApi { @Autowired PageService pageService; @Override @GetMapping("/list/{page}/{size}") public QueryResponseResult findList(@PathVariable("page") int page, @PathVariable("size")int size, QueryPageRequest queryPageRequest) { // ......略 }