mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-07 13:10:44 +00:00
feat 驾驶舱接口
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
package cn.bootx.platform.daxpay.admin.controller.report;
|
||||
|
||||
import cn.bootx.platform.common.core.annotation.IgnoreAuth;
|
||||
import cn.bootx.platform.common.core.rest.Res;
|
||||
import cn.bootx.platform.common.core.rest.ResResult;
|
||||
import cn.bootx.platform.common.core.util.ValidationUtil;
|
||||
import cn.bootx.platform.daxpay.service.core.report.service.CockpitReportService;
|
||||
import cn.bootx.platform.daxpay.service.dto.report.ChannelLineReport;
|
||||
import cn.bootx.platform.daxpay.service.param.report.CockpitReportQuery;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springdoc.api.annotations.ParameterObject;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 驾驶舱接口
|
||||
* @author xxm
|
||||
* @since 2024/3/17
|
||||
*/
|
||||
@IgnoreAuth// TODO 测试用, 后续删除
|
||||
@Tag(name = "驾驶舱接口")
|
||||
@RestController
|
||||
@RequestMapping("/report/cockpit")
|
||||
@RequiredArgsConstructor
|
||||
public class CockpitReportController {
|
||||
private final CockpitReportService cockpitReportService;
|
||||
|
||||
@Operation(summary = "支付金额(分)")
|
||||
@GetMapping("/getPayAmount")
|
||||
public ResResult<Integer> getPayAmount(@ParameterObject CockpitReportQuery query){
|
||||
ValidationUtil.validateParam(query);
|
||||
return Res.ok(cockpitReportService.getPayAmount(query));
|
||||
}
|
||||
|
||||
@Operation(summary = "退款金额(分)")
|
||||
@GetMapping("/getRefundAmount")
|
||||
public ResResult<Integer> getRefundAmount(@ParameterObject CockpitReportQuery query){
|
||||
ValidationUtil.validateParam(query);
|
||||
return Res.ok(cockpitReportService.getRefundAmount(query));
|
||||
}
|
||||
|
||||
@Operation(summary = "支付订单数量")
|
||||
@GetMapping("/getPayOrderCount")
|
||||
public ResResult<Integer> getPayOrderCount(@ParameterObject CockpitReportQuery query){
|
||||
ValidationUtil.validateParam(query);
|
||||
return Res.ok(cockpitReportService.getPayOrderCount(query));
|
||||
}
|
||||
|
||||
@Operation(summary = "退款订单数量")
|
||||
@GetMapping("/getRefundOrderCount")
|
||||
public ResResult<Integer> getRefundOrderCount(@ParameterObject CockpitReportQuery query){
|
||||
ValidationUtil.validateParam(query);
|
||||
return Res.ok(cockpitReportService.getRefundOrderCount(query));
|
||||
}
|
||||
|
||||
@Operation(summary = "支付通道折线图")
|
||||
@GetMapping("/getPayChannelLine")
|
||||
public ResResult<List<ChannelLineReport>> getPayChannelLine(@ParameterObject CockpitReportQuery query){
|
||||
ValidationUtil.validateParam(query);
|
||||
return Res.ok(cockpitReportService.getPayChannelLine(query));
|
||||
}
|
||||
|
||||
@Operation(summary = "退款通道折线图")
|
||||
@GetMapping("/getRefundChannelLine")
|
||||
public ResResult<List<ChannelLineReport>> getRefundChannelLine(@ParameterObject CockpitReportQuery query){
|
||||
ValidationUtil.validateParam(query);
|
||||
return Res.ok(cockpitReportService.getRefundChannelLine(query));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user