com.macro.mall.common.api.CommonPage Java Examples
The following examples show how to use
com.macro.mall.common.api.CommonPage.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MemberReadHistoryController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("分页获取用户浏览记录") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<MemberReadHistory>> list(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) { Page<MemberReadHistory> page = memberReadHistoryService.list(pageNum, pageSize); return CommonResult.success(CommonPage.restPage(page)); }
Example #2
Source File: SmsHomeAdvertiseController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询广告") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeAdvertise>> list(@RequestParam(value = "name", required = false) String name, @RequestParam(value = "type", required = false) Integer type, @RequestParam(value = "endTime", required = false) String endTime, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeAdvertise> advertiseList = advertiseService.list(name, type, endTime, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(advertiseList)); }
Example #3
Source File: SmsHomeRecommendProductController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询推荐") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeRecommendProduct>> list(@RequestParam(value = "productName", required = false) String productName, @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeRecommendProduct> homeBrandList = recommendProductService.list(productName, recommendStatus, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(homeBrandList)); }
Example #4
Source File: PmsBrandController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation(value = "根据品牌名称分页获取品牌列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<PmsBrand>> getList(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) { List<PmsBrand> brandList = brandService.listBrand(keyword, pageNum, pageSize); return CommonResult.success(CommonPage.restPage(brandList)); }
Example #5
Source File: PmsProductAttributeController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("根据分类查询属性列表或参数列表") @ApiImplicitParams({@ApiImplicitParam(name = "type", value = "0表示属性,1表示参数", required = true, paramType = "query", dataType = "integer")}) @RequestMapping(value = "/list/{cid}", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<PmsProductAttribute>> getList(@PathVariable Long cid, @RequestParam(value = "type") Integer type, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<PmsProductAttribute> productAttributeList = productAttributeService.getList(cid, type, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(productAttributeList)); }
Example #6
Source File: UmsAdminController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("根据用户名或姓名分页获取用户列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<UmsAdmin>> list(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<UmsAdmin> adminList = adminService.list(keyword, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(adminList)); }
Example #7
Source File: PmsProductCategoryController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询商品分类") @RequestMapping(value = "/list/{parentId}", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<PmsProductCategory>> getList(@PathVariable Long parentId, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<PmsProductCategory> productCategoryList = productCategoryService.getList(parentId, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(productCategoryList)); }
Example #8
Source File: OmsOrderReturnReasonController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询全部退货原因") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<OmsOrderReturnReason>> list(@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<OmsOrderReturnReason> reasonList = orderReturnReasonService.list(pageSize, pageNum); return CommonResult.success(CommonPage.restPage(reasonList)); }
Example #9
Source File: UmsRoleController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("根据角色名称分页获取角色列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<UmsRole>> list(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<UmsRole> roleList = roleService.list(keyword, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(roleList)); }
Example #10
Source File: OmsOrderReturnApplyController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询退货申请") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<OmsOrderReturnApply>> list(OmsReturnApplyQueryParam queryParam, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<OmsOrderReturnApply> returnApplyList = returnApplyService.list(queryParam, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(returnApplyList)); }
Example #11
Source File: PmsProductController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("查询商品") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<PmsProduct>> getList(PmsProductQueryParam productQueryParam, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<PmsProduct> productList = productService.list(productQueryParam, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(productList)); }
Example #12
Source File: SmsHomeBrandController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询推荐品牌") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeBrand>> list(@RequestParam(value = "brandName", required = false) String brandName, @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeBrand> homeBrandList = homeBrandService.list(brandName, recommendStatus, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(homeBrandList)); }
Example #13
Source File: SmsFlashPromotionProductRelationController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询不同场次关联及商品信息") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsFlashPromotionProduct>> list(@RequestParam(value = "flashPromotionId") Long flashPromotionId, @RequestParam(value = "flashPromotionSessionId") Long flashPromotionSessionId, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsFlashPromotionProduct> flashPromotionProductList = relationService.list(flashPromotionId, flashPromotionSessionId, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(flashPromotionProductList)); }
Example #14
Source File: MemberProductCollectionController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("显示收藏列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<MemberProductCollection>> list(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) { Page<MemberProductCollection> page = memberCollectionService.list(pageNum,pageSize); return CommonResult.success(CommonPage.restPage(page)); }
Example #15
Source File: PortalBrandController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("分页获取品牌相关商品") @RequestMapping(value = "/productList", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<PmsProduct>> productList(@RequestParam Long brandId, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "6") Integer pageSize) { CommonPage<PmsProduct> result = homeBrandService.productList(brandId,pageNum, pageSize); return CommonResult.success(result); }
Example #16
Source File: SmsFlashPromotionController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("根据活动名称分页查询") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public Object getItem(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsFlashPromotion> flashPromotionList = flashPromotionService.list(keyword, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(flashPromotionList)); }
Example #17
Source File: CmsSubjectController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation(value = "根据专题名称分页获取专题") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<CmsSubject>> getList(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) { List<CmsSubject> subjectList = subjectService.list(keyword, pageNum, pageSize); return CommonResult.success(CommonPage.restPage(subjectList)); }
Example #18
Source File: PmsPortalProductController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation(value = "综合搜索、筛选、排序") @ApiImplicitParam(name = "sort", value = "排序字段:0->按相关度;1->按新品;2->按销量;3->价格从低到高;4->价格从高到低", defaultValue = "0", allowableValues = "0,1,2,3,4", paramType = "query", dataType = "integer") @RequestMapping(value = "/search", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<PmsProduct>> search(@RequestParam(required = false) String keyword, @RequestParam(required = false) Long brandId, @RequestParam(required = false) Long productCategoryId, @RequestParam(required = false, defaultValue = "0") Integer pageNum, @RequestParam(required = false, defaultValue = "5") Integer pageSize, @RequestParam(required = false, defaultValue = "0") Integer sort) { List<PmsProduct> productList = portalProductService.search(keyword, brandId, productCategoryId, pageNum, pageSize, sort); return CommonResult.success(CommonPage.restPage(productList)); }
Example #19
Source File: MemberAttentionController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("显示关注列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<MemberBrandAttention>> list(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) { Page<MemberBrandAttention> page = memberAttentionService.list(pageNum,pageSize); return CommonResult.success(CommonPage.restPage(page)); }
Example #20
Source File: DemoController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation(value = "分页获取品牌列表") @RequestMapping(value = "/brand/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<PmsBrand>> listBrand(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "3") Integer pageSize) { List<PmsBrand> brandList = demoService.listBrand(pageNum, pageSize); return CommonResult.success(CommonPage.restPage(brandList)); }
Example #21
Source File: EsProductController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation(value = "根据商品id推荐商品") @RequestMapping(value = "/recommend/{id}", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<EsProduct>> recommend(@PathVariable Long id, @RequestParam(required = false, defaultValue = "0") Integer pageNum, @RequestParam(required = false, defaultValue = "5") Integer pageSize) { Page<EsProduct> esProductPage = esProductService.recommend(id, pageNum, pageSize); return CommonResult.success(CommonPage.restPage(esProductPage)); }
Example #22
Source File: EsProductController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation(value = "综合搜索、筛选、排序") @ApiImplicitParam(name = "sort", value = "排序字段:0->按相关度;1->按新品;2->按销量;3->价格从低到高;4->价格从高到低", defaultValue = "0", allowableValues = "0,1,2,3,4", paramType = "query", dataType = "integer") @RequestMapping(value = "/search", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<EsProduct>> search(@RequestParam(required = false) String keyword, @RequestParam(required = false) Long brandId, @RequestParam(required = false) Long productCategoryId, @RequestParam(required = false, defaultValue = "0") Integer pageNum, @RequestParam(required = false, defaultValue = "5") Integer pageSize, @RequestParam(required = false, defaultValue = "0") Integer sort) { Page<EsProduct> esProductPage = esProductService.search(keyword, brandId, productCategoryId, pageNum, pageSize, sort); return CommonResult.success(CommonPage.restPage(esProductPage)); }
Example #23
Source File: EsProductController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation(value = "简单搜索") @RequestMapping(value = "/search/simple", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<EsProduct>> search(@RequestParam(required = false) String keyword, @RequestParam(required = false, defaultValue = "0") Integer pageNum, @RequestParam(required = false, defaultValue = "5") Integer pageSize) { Page<EsProduct> esProductPage = esProductService.search(keyword, pageNum, pageSize); return CommonResult.success(CommonPage.restPage(esProductPage)); }
Example #24
Source File: CmsSubjectController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation(value = "根据专题名称分页获取专题") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<CmsSubject>> getList(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) { List<CmsSubject> subjectList = subjectService.list(keyword, pageNum, pageSize); return CommonResult.success(CommonPage.restPage(subjectList)); }
Example #25
Source File: PmsProductAttributeController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("根据分类查询属性列表或参数列表") @ApiImplicitParams({@ApiImplicitParam(name = "type", value = "0表示属性,1表示参数", required = true, paramType = "query", dataType = "integer")}) @RequestMapping(value = "/list/{cid}", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<PmsProductAttribute>> getList(@PathVariable Long cid, @RequestParam(value = "type") Integer type, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<PmsProductAttribute> productAttributeList = productAttributeService.getList(cid, type, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(productAttributeList)); }
Example #26
Source File: PmsBrandController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation(value = "根据品牌名称分页获取品牌列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody @PreAuthorize("hasAuthority('pms:brand:read')") public CommonResult<CommonPage<PmsBrand>> getList(@RequestParam(value = "keyword", required = false) String keyword, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) { List<PmsBrand> brandList = brandService.listBrand(keyword, pageNum, pageSize); return CommonResult.success(CommonPage.restPage(brandList)); }
Example #27
Source File: UmsAdminController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("根据用户名或姓名分页获取用户列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<UmsAdmin>> list(@RequestParam(value = "name", required = false) String name, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<UmsAdmin> adminList = adminService.list(name, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(adminList)); }
Example #28
Source File: SmsHomeAdvertiseController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询广告") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsHomeAdvertise>> list(@RequestParam(value = "name", required = false) String name, @RequestParam(value = "type", required = false) Integer type, @RequestParam(value = "endTime", required = false) String endTime, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsHomeAdvertise> advertiseList = advertiseService.list(name, type, endTime, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(advertiseList)); }
Example #29
Source File: DemoController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation(value = "分页获取品牌列表") @RequestMapping(value = "/brand/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<PmsBrand>> listBrand(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "3") Integer pageSize) { List<PmsBrand> brandList = demoService.listBrand(pageNum, pageSize); return CommonResult.success(CommonPage.restPage(brandList)); }
Example #30
Source File: PmsProductCategoryController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("分页查询商品分类") @RequestMapping(value = "/list/{parentId}", method = RequestMethod.GET) @ResponseBody @PreAuthorize("hasAuthority('pms:productCategory:read')") public CommonResult<CommonPage<PmsProductCategory>> getList(@PathVariable Long parentId, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<PmsProductCategory> productCategoryList = productCategoryService.getList(parentId, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(productCategoryList)); }