Commit 1a39f875 authored by liu lu's avatar liu lu

新采购rpc

parent f9baa052
<?php
namespace Meibuyu\Rpc\Service\Interfaces\PurchaseNew;
interface PurchaseInfoServiceInterface
{
/**
* 扫描物流号或批次号查询
* @param $scanNo
* @return array
*/
public function getShippingInfo($scanNo): array;
/**
* 分页查询
* @param int $page 当前第几页
* @param int $pageSize 每页显示数
* @return array
*/
public function getShippingList($page=1,$pageSize=10): array;
/**
* 订单推送采购
* @param $post
* @return mixed
*/
public function orderPushPurchase($post);
}
\ No newline at end of file
<?php
namespace Meibuyu\Rpc\Service\Interfaces\PurchaseNew;
interface PurchaseStockServiceInterface
{
/**
* 收货记录rpc
{
"batch_no": "batch_no",
"purchase_no": "1634197133",
"product": [{
"id": 24,
"received_num":22 //收货数量
}]
}
*
*
* response
* {
"flag"=>true|false
* "error_msg"=>''
* }
* @param $post
* @return array
*/
public function receiptOperation($post) :array ;
/**
* 入库记录rpc
{
"batch_no": "batch_no",
"purchase_no": "1634197133",
"stored_person":"入库操作人"
"product": [{
"id": 24,
"stored_num":22 //入库数量
}]
}
* @param $post
* @return array
*/
public function warehousingOperation($post):array;
/**
* 已完成记录rpc
*
{
"batch_no": "batch_no",
"purchase_no": "1634197133",
"product": [{
"id": 24,
"completed_num":22 //已完成数量
}]
}
* @param $post
* @return array
*/
public function completeOperation($post):array;
/**
* 退款记录rpc
{
"id": 28,
"purchase_id": 26,
"purchase_no": "1634197133",
"product": [{
"id": 24,
"return_num":22 //已退货数量
}]
}
* @param $post
* @return array
*/
public function refundOperation($post):array;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment