package com.ruoyi.web.v2.v1.controller;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.framework.datasource.DynamicDataSourceService;
import com.ruoyi.web.v2.v1.entity.request.PayRecordRequest;
import com.ruoyi.web.v2.v1.service.IPayRecordService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
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 author
 * @since 2025-12-25
 */
@RestController
@RequestMapping("/pay-record")
public class PayRecordController {
    @Autowired
    private IPayRecordService payRecordService;

    @Autowired
    private DynamicDataSourceService dynamicDataSourceService;
    @ApiOperation("分页查询")
    @PostMapping("/page")
    public AjaxResult page(@RequestBody PayRecordRequest payRecordRequest)   {
        return payRecordService.getListPayRecordPage(payRecordRequest);

    }

    @ApiOperation("查询全部")
    @PostMapping("/list")
    public AjaxResult list(@RequestBody PayRecordRequest payRecordRequest) {
        return payRecordService.getList(payRecordRequest);
    }

}
