Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-rpc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
without authentication
meibuyu-rpc
Commits
1a39f875
Commit
1a39f875
authored
Oct 25, 2021
by
liu lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新采购rpc
parent
f9baa052
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
117 additions
and
0 deletions
+117
-0
PurchaseInfoServiceInterface.php
...e/Interfaces/PurchaseNew/PurchaseInfoServiceInterface.php
+32
-0
PurchaseStockServiceInterface.php
.../Interfaces/PurchaseNew/PurchaseStockServiceInterface.php
+85
-0
No files found.
src/Service/Interfaces/PurchaseNew/PurchaseInfoServiceInterface.php
0 → 100644
View file @
1a39f875
<?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
src/Service/Interfaces/PurchaseNew/PurchaseStockServiceInterface.php
0 → 100644
View file @
1a39f875
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment