package com.ruoyi.web.v2.controller;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.v2.entity.request.DeductionRecordRequest;
import com.ruoyi.web.v2.service.IDeductionDetailsService;
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/deduction-details")
public class DeductionDetailsController {
    @Autowired
    private IDeductionDetailsService deductionDetailsService;



    @ApiOperation("分页查询")
    @PostMapping("/page")
    public AjaxResult page(@RequestBody DeductionRecordRequest deductionRecordRequest)   {

        return deductionDetailsService.getListPayRecordPage(deductionRecordRequest);

    }
    @ApiOperation("查询全部")
    @PostMapping("/list")
    public AjaxResult list(@RequestBody DeductionRecordRequest deductionRecordRequest) {

        return deductionDetailsService.getList(deductionRecordRequest);
    }


}
