package com.jwipc.finance.controller.rest;

import com.jwipc.finance.logic.AccountStatementAttachmentLogic;
import com.jwipc.finance.model.query.AccountStatementAttachmentQuery;
import com.jwipc.page.PageView;
import com.jwipc.sys.model.query.BusinessAttachmentQuery;
import lombok.RequiredArgsConstructor;
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 + "/account/statement/attachment/rest")
@RequiredArgsConstructor
public class AccountStatementAttachmentRestController {
    private final AccountStatementAttachmentLogic accountStatementAttachmentLogic;
    @RequestMapping("list")
    public PageView list(AccountStatementAttachmentQuery query) {
        return accountStatementAttachmentLogic.list(query);
    }
}
