package com.jwipc.finance.controller.rest;

import com.jwipc.finance.logic.PaymentReceiptLogic;
import com.jwipc.finance.model.query.PaymentNoticeQuery;
import com.jwipc.finance.model.query.PaymentReceiptQuery;
import com.jwipc.page.PageView;
import com.jwipc.security.LoginUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

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

/**
 * <p>
 * 付款申请回执单 前端控制器
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-12-05
 */
@RestController
@RequestMapping(MODULE_ROOT + "/payment/receipt/rest")
@RequiredArgsConstructor
public class PaymentReceiptRestController {
    private final PaymentReceiptLogic paymentReceiptLogic;
    @PostMapping("/list")
    public PageView list(PaymentReceiptQuery query){
        return paymentReceiptLogic.findByPage(query);
    }
}
