| | |
| | | private AppUserClient appUserClient; |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @GetMapping("/confirmOrder") |
| | | @ApiOperation(value = "确定订单", tags = {"商城-订单-小程序"}) |
| | | public R<ConfirmOrderVo> confirmOrder(@ApiParam("商品id") Integer goodId,@ApiParam("支付类型(1-现金,2-积分)")Integer type) { |
| | | ConfirmOrderVo confirmOrderVo = orderService.confirmOrder(goodId,type); |
| | | return R.ok(confirmOrderVo); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 我的订单列表 |
| | | */ |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 预约技师 |
| | | */ |
| | | @PostMapping("/subscribe") |
| | | public R<Void> subscribe(@RequestParam(value = "id", required = false) Long id, @RequestParam(value = "technicianId", required = false) Integer technicianId) { |
| | | Order order = orderService.getById(id); |
| | | order.setTechnicianId(technicianId); |
| | | orderService.updateById(order); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/getLastOrder") |
| | | public R<Order> getLastOrder(@RequestParam("appUserId") Long appUserId) { |