package org.dromara.web.controller;

import lombok.RequiredArgsConstructor;
import org.dromara.common.core.domain.R;
import org.dromara.web.domain.bo.InvoiceMakeOutBo;
import org.dromara.web.service.InvoiceManagementService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: Huanyi
 * @CreateTime: 2025-08-15
 * @Description:
 * @Version: 1.0
 */

@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/invoice/management")
public class InvoiceManagementController {

    private final InvoiceManagementService invoiceManagementService;

    @PutMapping("/makeOut")
    public R makeOut(@RequestBody InvoiceMakeOutBo bo) {
        return invoiceManagementService.makeOut(bo);
    }

}
