package com.leyou.controller; import com.leyou.PageResult; import com.leyou.service.BrandService; import com.pojo.Brand; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("brand") public class BrandController { @Autowired private BrandService brandService; @GetMapping("page") public ResponseEntity<PageResult<Brand>> queryBrand(@RequestParam(value ="page",required = false,defaultValue = "1")int page ,@RequestParam(value ="rows",defaultValue = "5",required = false)int rows,
简单的分页查询的实现接口
最新推荐文章于 2024-05-05 03:04:32 发布