| | |
| | | /** |
| | | * 订单详情 |
| | | */ |
| | | @ApiOperation(value = "订单详情", tags = {"小程序-订单详情"}) |
| | | @ApiOperation(value = "订单详情", tags = {"小程序-个人中心-我的订单-订单详情"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"), |
| | | }) |
| | |
| | | /** |
| | | * 扫码校验 |
| | | */ |
| | | @ApiOperation(value = "扫码校验", tags = {"小程序-个人中心-门店管理-扫码核销校验"}) |
| | | @ApiOperation(value = "扫码校验", tags = {"小程序-个人中心-门店管理"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "分享id", name = "shareId", required = true, dataType = "int", paramType="query"), |
| | | }) |
| | |
| | | /** |
| | | * 订单核销 |
| | | */ |
| | | @ApiOperation(value = "订单核销", tags = {"小程序-个人中心-门店管理-扫码核销"}) |
| | | @ApiOperation(value = "订单核销", tags = {"小程序-个人中心-门店管理"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单号", name = "code", required = true, dataType = "String"), |
| | | }) |
| | |
| | | /** |
| | | * 取消订单 |
| | | */ |
| | | @ApiOperation(value = "取消订单", tags = {"小程序-个人中心-我的订单-取消订单"}) |
| | | @ApiOperation(value = "取消订单", tags = {"小程序-个人中心-我的订单"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"), |
| | | }) |
| | |
| | | /** |
| | | * 确认收货 |
| | | */ |
| | | @ApiOperation(value = "确认收货", tags = {"小程序-个人中心-我的订单-确认收货"}) |
| | | @ApiOperation(value = "确认收货", tags = {"小程序-个人中心-我的订单"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"), |
| | | }) |
| | |
| | | /** |
| | | * 更换收货地址 |
| | | */ |
| | | @ApiOperation(value = "更换收货地址", tags = {"小程序-个人中心-我的订单-更换收货地址"}) |
| | | @ApiOperation(value = "更换收货地址", tags = {"小程序-个人中心-我的订单"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"), |
| | | }) |
| | |
| | | /** |
| | | * 更新订单状态 |
| | | */ |
| | | @ApiOperation(value = "更新订单状态", tags = {"后台-订单管理-更新订单状态"}) |
| | | @ApiOperation(value = "更新订单状态", tags = {"后台-订单管理"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单对象", name = "order", required = true, dataType = "Order"), |
| | | }) |
| | |
| | | * 添加商品 |
| | | */ |
| | | @PostMapping("/addGoods") |
| | | @ApiOperation(value = "后台商品添加", tags = {"管理后台-商品管理-发布商品"}) |
| | | @ApiOperation(value = "发布商品", tags = {"管理后台-商品管理"}) |
| | | public R<Void> addGoods(@RequestBody Goods goods) { |
| | | goodsService.addGoods(goods); |
| | | return R.ok(); |
| | |
| | | * 后台管理商品列表 |
| | | */ |
| | | @GetMapping("/manageGoodsList") |
| | | @ApiOperation(value = "后台管理商品列表", tags = {"管理后台-商品管理-商品列表"}) |
| | | @ApiOperation(value = "商品列表", tags = {"管理后台-商品管理"}) |
| | | public R<IPage<Goods>> manageGoodsList(@ApiParam("页码") @RequestParam Integer pageNum, |
| | | @ApiParam("每一页数据大小") Integer pageSize, |
| | | Goods goods){ |
| | |
| | | * 后台商品详情 |
| | | */ |
| | | @GetMapping("/manageGoodsDetail/{goodsId}") |
| | | @ApiOperation(value = "后台商品详情", tags = {"管理后台-商品管理-商品详情"}) |
| | | @ApiOperation(value = "商品详情", tags = {"管理后台-商品管理"}) |
| | | public R<Goods> manageGoodsDetail(@PathVariable("goodsId") Long goodsId){ |
| | | return R.ok(goodsService.getManageGoodsDetail(goodsId)); |
| | | } |
| | |
| | | * 后台商品修改 |
| | | */ |
| | | @PutMapping("/manageGoodsUpdate") |
| | | @ApiOperation(value = "后台商品修改", tags = {"管理后台-商品管理-商品修改"}) |
| | | @ApiOperation(value = "商品修改", tags = {"管理后台-商品管理"}) |
| | | public R<Void> manageGoodsUpdate(@RequestBody Goods goods){ |
| | | goodsService.updateManageGoods(goods); |
| | | return R.ok(); |
| | |
| | | * 后台商品删除 |
| | | */ |
| | | @DeleteMapping("/manageGoodsDelete/{goodsId}") |
| | | @ApiOperation(value = "后台商品删除", tags = {"管理后台-商品管理-商品删除"}) |
| | | @ApiOperation(value = "商品删除", tags = {"管理后台-商品管理"}) |
| | | public R<Void> manageGoodsDelete(@PathVariable("goodsId") Long goodsId){ |
| | | goodsService.removeById(goodsId); |
| | | return R.ok(); |
| | |
| | | * 商品列表 |
| | | */ |
| | | @GetMapping("/goodsList") |
| | | @ApiOperation(value = "商品列表", tags = {"小程序-商城-首页-热门商品列表", "首页热门商品-小程序"}) |
| | | @ApiOperation(value = "热门商品列表", tags = {"小程序-商城-首页", "小程序-首页"}) |
| | | public R<TableDataInfo> goodsList(Goods goods){ |
| | | startPage(); |
| | | return R.ok(getDataTable(goodsService.goodsList(goods))); |
| | |
| | | * 指定门店商品 |
| | | */ |
| | | @GetMapping("/getGoodsListByShopId") |
| | | @ApiOperation(value = "商品列表", tags = {"小程序-首页-门店详情-商品购买列表"}) |
| | | @ApiOperation(value = "商品购买列表", tags = {"小程序-首页-门店详情"}) |
| | | public R<TableDataInfo> getGoodsListByShopId(@ApiParam("门店id") @RequestParam Integer shopId) { |
| | | startPage(); |
| | | return R.ok(getDataTable(goodsService.getGoodsListByShopId(shopId))); |
| | |
| | | * 商品详情 |
| | | */ |
| | | @GetMapping("/goodsDetail/{goodsId}") |
| | | @ApiOperation(value = "商品详情", tags = {"小程序-商城-首页-商品详情"}) |
| | | @ApiOperation(value = "商品详情", tags = {"小程序-商城-首页"}) |
| | | public R<GoodsVO> goodsDetail(@PathVariable("goodsId") Long goodsId){ |
| | | return R.ok(goodsService.goodsDetail(goodsId)); |
| | | } |
| | |
| | | * 发布商品评价 |
| | | */ |
| | | @PostMapping("/addGoodsEvaluate") |
| | | @ApiOperation(value = "发布商品评价", tags = {"小程序-发布商品评价"}) |
| | | @ApiOperation(value = "发布商品评价", tags = {"小程序-个人中心-我的订单"}) |
| | | public R<Void> addGoodsEvaluate(@RequestBody GoodsEvaluateVO goodsEvaluateVO){ |
| | | goodsEvaluateService.addGoodsEvaluate(goodsEvaluateVO); |
| | | return R.ok(); |
| | |
| | | * 查询指定门店手机号 |
| | | */ |
| | | @GetMapping("/selectPhoneByShopId") |
| | | @ApiOperation(value = "查询指定门店手机号", tags = {"小程序-门店详情-查询客服电话"}) |
| | | @ApiOperation(value = "查询指定门店手机号", tags = {"小程序-首页-门店详情"}) |
| | | public R<List<Phone>> getPhoneByShopId(@ApiParam("门店id") @RequestParam Integer shopId) { |
| | | return R.ok(phoneService.list(new LambdaQueryWrapper<Phone>() |
| | | .eq(Phone::getType, PhoneType.SHOP.getCode()) |
| | |
| | | * 秒杀活动列表 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "秒杀活动列表",tags = {"小程序-商城-首页-秒杀活动列表"}) |
| | | @ApiOperation(value = "秒杀活动列表",tags = {"小程序-商城-首页"}) |
| | | public R<TableDataInfo> list(Goods goods) |
| | | { |
| | | startPage(); |
| | |
| | | * 秒杀活动详情 |
| | | */ |
| | | @GetMapping("/detail/{id}") |
| | | @ApiOperation(value = "秒杀活动详情", tags = {"小程序-商城-首页-秒杀活动列表-秒杀活动详情"}) |
| | | @ApiOperation(value = "秒杀活动详情", tags = {"小程序-商城-首页"}) |
| | | public R<SeckillActivityDetailVO> detail(@PathVariable("id") Integer id) |
| | | { |
| | | return R.ok(seckillActivityInfoService.detail(id)); |