PurchaseTaskServiceInterface.php 1.22 KB
Newer Older
1 2 3 4 5 6 7 8
<?php
/**
 * Created by PhpStorm.
 * User: Zero
 * Date: 2021/06/11
 * Time: 14:22:52
 */

9
namespace Meibuyu\Rpc\Service\Interfaces\Purchase;
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

interface PurchaseTaskServiceInterface
{

    /**
     * 为订单提供获取采购数据
     * @param array $noList
     * @return array
     * @author Zero
     */
    public function infoForOrder(array $noList);

    /**
     * 通知取消
     * @param array $data
     * [
     *     'source_id' => '来源id',
     *     'notice_cancel_reason' => '通知取消原因',
     *     'type' => 1 // 1(订单采购); 2(备货采购); 3(样品采购)
王源's avatar
王源 committed
29
     *     'auth' => Auth::user() // 当前用户
30 31
     * ]
     * @return bool
32
     * @throws \Meibuyu\Rpc\Exceptions\RpcException
33 34 35 36 37 38 39 40 41 42
     * @author Zero
     */
    public function noticeCancel(array $data);

    /**
     * 更新产品数据
     * @param mixed $sourceId 来源id
     * @param array $data 要更新的数据如['specification', 'remark']等
     * @param int $type 采购类型,默认为订单采购,可传参数[1(订单采购); 2(备货采购); 3(样品采购)]
     * @return bool
43
     * @throws \Meibuyu\Rpc\Exceptions\RpcException
44 45 46 47 48
     * @author Zero
     */
    public function updateProduct($sourceId, array $data, $type = 1);

}