| | |
| | | |
| | | import com.doumee.core.annotation.LoginRequired; |
| | | import com.doumee.core.annotation.LoginShopRequired; |
| | | import com.doumee.core.annotation.LoginDriverRequired; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | | import com.doumee.core.constants.Constants; |
| | | import com.doumee.core.model.ApiResponse; |
| | |
| | | return ApiResponse.success("确认收货成功"); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "会员查询订单时间轴") |
| | | @GetMapping("/timeline/{orderId}") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) |
| | | }) |
| | | public ApiResponse timelineForMember(@PathVariable Integer orderId) { |
| | | return ApiResponse.success(ordersService.getOrderTimeline(orderId)); |
| | | } |
| | | |
| | | @LoginShopRequired |
| | | @ApiOperation(value = "门店查询订单时间轴") |
| | | @GetMapping("/shop/timeline/{orderId}") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) |
| | | }) |
| | | public ApiResponse timelineForShop(@PathVariable Integer orderId) { |
| | | return ApiResponse.success(ordersService.getOrderTimeline(orderId)); |
| | | } |
| | | |
| | | @LoginDriverRequired |
| | | @ApiOperation(value = "司机查询订单时间轴") |
| | | @GetMapping("/driver/timeline/{orderId}") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) |
| | | }) |
| | | public ApiResponse timelineForDriver(@PathVariable Integer orderId) { |
| | | return ApiResponse.success(ordersService.getOrderTimeline(orderId)); |
| | | } |
| | | |
| | | } |