mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-05 20:18:22 +00:00
feat 接口订单和定时任务调整
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package cn.daxpay.single.admin.controller.record;
|
||||
|
||||
import cn.bootx.platform.common.core.rest.PageResult;
|
||||
import cn.bootx.platform.common.core.rest.Res;
|
||||
import cn.bootx.platform.common.core.rest.ResResult;
|
||||
import cn.bootx.platform.common.core.rest.param.PageParam;
|
||||
import cn.daxpay.single.service.core.record.flow.service.TradeFlowRecordService;
|
||||
import cn.daxpay.single.service.dto.record.flow.TradeFlowRecordDto;
|
||||
import cn.daxpay.single.service.param.record.TradeFlowRecordQuery;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 交易流水记录控制器
|
||||
* @author xxm
|
||||
* @since 2024/5/17
|
||||
*/
|
||||
@Tag(name = "交易流水记录控制器")
|
||||
@RestController
|
||||
@RequestMapping("/record/flow")
|
||||
@RequiredArgsConstructor
|
||||
public class TradeFlowRecordController {
|
||||
private final TradeFlowRecordService service;
|
||||
|
||||
@Operation(summary = "分页查询")
|
||||
@GetMapping("/page")
|
||||
public ResResult<PageResult<TradeFlowRecordDto>> page(PageParam pageParam, TradeFlowRecordQuery query) {
|
||||
return Res.ok(service.page(pageParam, query));
|
||||
}
|
||||
|
||||
@Operation(summary = "查询单条")
|
||||
@GetMapping("/findById")
|
||||
public ResResult<TradeFlowRecordDto> findById(Long id) {
|
||||
return Res.ok(service.findById(id));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user