feat 接口订单和定时任务调整

This commit is contained in:
DaxPay
2024-05-17 18:03:52 +08:00
parent 9699661a1f
commit 4c6262be05
27 changed files with 486 additions and 188 deletions

View File

@@ -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));
}
}