| | |
| | | import com.xiaopeng.api.feignClient.automaticPilot.OrderMissionClient; |
| | | import com.xiaopeng.api.model.order.XpCruiseOrder; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import com.xiaopeng.common.core.web.page.PageInfo; |
| | | import com.xiaopeng.order.service.IXpCruiseOrderService; |
| | | import com.xiaopeng.order.model.query.XpCruiseOrderPageQuery; |
| | | import com.xiaopeng.order.model.vo.XpCruiseOrderPageVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | * @author mitao |
| | | * @since 2026-02-03 |
| | | */ |
| | | @Validated |
| | | @RestController |
| | | @Api(tags = "巡游订单") |
| | | @RequiredArgsConstructor(onConstructor_ = @Lazy) |
| | | public class XpCruiseOrderController { |
| | | |
| | |
| | | return R.ok(order.getId()); |
| | | } |
| | | |
| | | /** |
| | | * 巡游订单记录分页列表 |
| | | * |
| | | * @param query 分页查询参数 |
| | | * @return 分页结果 |
| | | */ |
| | | @ApiOperation(value = "巡游订单记录分页列表", tags = {"管理后台-巡游订单"}) |
| | | @PostMapping("/api/v1/cruise-order/pageList") |
| | | public R<PageInfo<XpCruiseOrderPageVO>> pageList(@Validated @RequestBody XpCruiseOrderPageQuery query) { |
| | | PageInfo<XpCruiseOrderPageVO> pageInfo = xpCruiseOrderService.pageList(query); |
| | | return R.ok(pageInfo); |
| | | } |
| | | |
| | | } |