package com.jwipc.finance.controller.rest;

import com.jwipc.finance.dto.PaymentChangeParamDTO;
import com.jwipc.finance.logic.PayableRefundLogic;
import com.jwipc.finance.model.query.PayableRefundQuery;
import com.jwipc.finance.model.query.PaymentChangeQuery;
import com.jwipc.page.PageView;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import static com.jwipc.finance.constant.ModuleConst.MODULE_ROOT;

/**
 * <p>
 * 付款申请变更表 前端控制器
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-11-25
 */
@RestController
@RequestMapping(MODULE_ROOT + "/payable/refund/rest")
@RequiredArgsConstructor
public class PayableRefundRestController {
    private final PayableRefundLogic payableRefundLogic;
    /**
     * 列表
     *
     * @param query
     * @return
     */
    @RequestMapping("/list")
    public PageView list(PayableRefundQuery query) {
        return payableRefundLogic.findByPage(query);
    }

}
