package com.fjhx.sale.controller.purchase;

import com.fjhx.purchase.entity.purchase.dto.PurchaseDto;
import com.fjhx.sale.service.purchase.SalePurchaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 采购 前端控制器
 * </p>
 *
 * @author
 * @since 2023-04-06
 */
//@DS(SourceConstant.PURCHASE)
@RestController
@RequestMapping("/sale/purchase")
public class SalePurchaseController {

    @Autowired
    private SalePurchaseService salePurchaseService;

    /**
     * 采购编辑
     */
//    @PostMapping("/cancellation")
    public void cancellation(@RequestBody PurchaseDto purchaseDto) {
        salePurchaseService.cancellation(purchaseDto);
    }

}
