package com.jwipc.finance.controller.rest;

import com.jwipc.finance.logic.InvoicedApplyAttachmentLogic;
import com.jwipc.finance.model.query.AccountStatementAttachmentQuery;
import com.jwipc.finance.model.query.InvoicedApplyAttachmentQuery;
import com.jwipc.page.PageView;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
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-10-16
 */
@RestController
@RequestMapping(MODULE_ROOT + "/invoiced/apply/attachment/rest")
@RequiredArgsConstructor
public class InvoicedApplyAttachmentRestController {
    private final InvoicedApplyAttachmentLogic invoicedApplyAttachmentLogic;
    @RequestMapping("list")
    public PageView list(InvoicedApplyAttachmentQuery query) {
        return invoicedApplyAttachmentLogic.list(query);
    }
}
