package com.xiaopeng.operation.controller;
|
|
|
import com.xiaopeng.api.model.operation.XpCruisePlan;
|
import com.xiaopeng.common.core.domain.R;
|
import com.xiaopeng.common.core.web.page.PageInfo;
|
import com.xiaopeng.operation.query.CruisePlanQuery;
|
import com.xiaopeng.operation.service.IXpCruisePlanService;
|
import io.swagger.annotations.ApiOperation;
|
import lombok.RequiredArgsConstructor;
|
import org.springframework.context.annotation.Lazy;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* <p>
|
* 巡游计划 前端控制器
|
* </p>
|
*
|
* @author mitao
|
* @since 2026-02-26
|
*/
|
@RestController
|
@RequiredArgsConstructor(onConstructor_ = @Lazy)
|
public class XpCruisePlanController {
|
private final IXpCruisePlanService xpCruisePlanService;
|
|
@ApiOperation(value = "获取巡游计划分页列表", tags = {"管理后台-巡游计划"})
|
@PostMapping(value = {"/api/v1/xp-cruise-plan/pageList"})
|
public R<PageInfo<XpCruisePlan>> getPageList(@RequestBody CruisePlanQuery query){
|
return R.ok(xpCruisePlanService.getPageList(query));
|
}
|
|
}
|