| | |
| | | import com.ruoyi.order.model.Order; |
| | | import com.ruoyi.order.service.OrderService; |
| | | import com.ruoyi.order.vo.OrderDetailVO; |
| | | import com.ruoyi.order.vo.OrderVO; |
| | | import com.ruoyi.system.api.model.LoginUser; |
| | | import io.swagger.annotations.*; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @Resource |
| | | private OrderService orderService; |
| | | @Resource |
| | | TokenService tokenService; |
| | | private TokenService tokenService; |
| | | |
| | | |
| | | /** |
| | |
| | | @ApiImplicitParam(value = "订单状态", name = "status", required = true, dataType = "int"), |
| | | }) |
| | | @GetMapping("/getMyOrderList") |
| | | public TableDataInfo getMyOrderList(@ApiParam("订单状态") Integer status){ |
| | | public TableDataInfo<OrderVO> getMyOrderList(@ApiParam("订单状态") Integer status){ |
| | | startPage(); |
| | | LoginUser loginUserApplet = tokenService.getLoginUserApplet(); |
| | | return getDataTable(orderService.selectOrderListByUserId(status, loginUserApplet.getUserid())); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 更换收货地址 |
| | | */ |
| | | @ApiOperation(value = "更换收货地址", tags = {"小程序-个人中心-我的订单-更换收货地址"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"), |
| | | }) |
| | | @GetMapping("/changeAddress") |
| | | public R<Void> changeAddress(@RequestParam("orderId") Long orderId, @RequestParam("addressId") Long addressId){ |
| | | // TODO 待完善 |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | |
| | | |