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
ce4f159e
Commit
ce4f159e
authored
Oct 14, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' into user-rpc
parents
f76884f1
20e67dc8
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
117 additions
and
10 deletions
+117
-10
LogisticsServiceInterface.php
...ervice/Interfaces/Logistics/LogisticsServiceInterface.php
+17
-0
ShopifyOrderServiceInterface.php
...Service/Interfaces/Order/ShopifyOrderServiceInterface.php
+1
-1
ShopifyProductServiceInterface.php
...ice/Interfaces/Product/ShopifyProductServiceInterface.php
+21
-0
ShopifyServiceInterface.php
src/Service/Interfaces/Product/ShopifyServiceInterface.php
+23
-0
StoreServiceInterface.php
src/Service/Interfaces/StoreServiceInterface.php
+21
-9
ShopifyApp.php
src/Shopify/ShopifyApp.php
+4
-0
Order.php
src/Shopify/lib/Order.php
+30
-0
No files found.
src/Service/Interfaces/Logistics/LogisticsServiceInterface.php
0 → 100644
View file @
ce4f159e
<?php
namespace
Meibuyu\Micro\Service\Interfaces\Logistics
;
interface
LogisticsServiceInterface
{
/**
* 将物流单号推送到物流中心,物流中心会时刻监视运单变化实时推送给订阅模块
* @param $module 模块名称
* @param $logisticsCode 物流公司编码
* @param $logisticsNo 物流单号
* @return mixed
*/
public
function
push
(
$module
,
$logisticsCode
,
$logisticsNo
);
}
\ No newline at end of file
src/Service/Interfaces/Order/ShopifyServiceInterface.php
→
src/Service/Interfaces/Order/Shopify
Order
ServiceInterface.php
View file @
ce4f159e
...
...
@@ -10,7 +10,7 @@ namespace Meibuyu\Micro\Service\Interfaces\Order;
interface
ShopifyServiceInterface
interface
Shopify
Order
ServiceInterface
{
/**
* shopify 推送订单信息
...
...
src/Service/Interfaces/Product/ShopifyProductServiceInterface.php
0 → 100644
View file @
ce4f159e
<?php
/**
* Created by PhpStorm.
* User: Zero
* Date: 2020/10/12
* Time: 9:39
*/
namespace
Meibuyu\Micro\Service\Interfaces\Product
;
interface
ShopifyProductServiceInterface
{
/**
* 通过shopify子产品的shopify_id获取shopify子产品
* @param array $vids 默认去重
* @return array 默认keyBy
*/
public
function
getChildrenByVids
(
array
$vids
)
:
array
;
}
src/Service/Interfaces/Product/ShopifyServiceInterface.php
0 → 100644
View file @
ce4f159e
<?php
/**
* Created by PhpStorm.
* User: Zero
* Date: 2020/10/12
* Time: 9:39
*/
namespace
Meibuyu\Micro\Service\Interfaces\Product
;
interface
ShopifyServiceInterface
{
/**
* 拉取一个shopify订单数据
* @param $orderId
* @param $shopifySiteId
* @return array
* @throws \Exception
*/
public
function
pullOrder
(
$orderId
,
$shopifySiteId
)
:
array
;
}
src/Service/Interfaces/StoreServiceInterface.php
View file @
ce4f159e
...
...
@@ -174,14 +174,26 @@ interface StoreServiceInterface
public
function
checkStock
(
$ids
)
:
array
;
// /**
// * description:出库单 恢复库存 出库单定为已取消
// * author: fuyunnan
// * @param string $sourceNo 来源单号
// * @return int
// * @throws
// * Date: 2020/9/7
// */
// public function restoreStock($sourceNo): int;
/**
* description:出库单 恢复库存 出库单定为已取消
* author: fuyunnan
* @param string $sourceNo 来源单号
* @return int
* @throws
* Date: 2020/9/7
*/
public
function
restoreStock
(
$sourceNo
)
:
int
;
/**
* description:更新出库单状态
* author: fuyunnan
* @param array $sourceNos 来源单号数组
* @param array $where 条件
* @param array $update 修改内容
* @return int
* @throws
* Date: 2020/10/13
*/
public
function
updateExOrder
(
$sourceNos
,
$where
,
$update
)
:
int
;
}
src/Shopify/ShopifyApp.php
View file @
ce4f159e
...
...
@@ -17,6 +17,7 @@ use Meibuyu\Micro\Shopify\lib\InventoryItem;
use
Meibuyu\Micro\Shopify\lib\InventoryLevel
;
use
Meibuyu\Micro\Shopify\lib\Location
;
use
Meibuyu\Micro\Shopify\lib\Metafield
;
use
Meibuyu\Micro\Shopify\lib\Order
;
use
Meibuyu\Micro\Shopify\lib\Product
;
use
Meibuyu\Micro\Shopify\lib\ProductVariant
;
use
Meibuyu\Micro\Shopify\lib\SmartCollection
;
...
...
@@ -37,6 +38,7 @@ use Meibuyu\Micro\Shopify\lib\Webhook;
* @property-read InventoryItem $InventoryItem
* @property-read InventoryLevel $InventoryLevel
* @property-read Location $Location
* @property-read Order $Order
*
* @method Webhook Webhook(integer $id = null)
* @method Collection Collection(integer $id = null)
...
...
@@ -48,6 +50,7 @@ use Meibuyu\Micro\Shopify\lib\Webhook;
* @method InventoryItem InventoryItem(integer $id = null)
* @method InventoryLevel InventoryLevel(integer $id = null)
* @method Location Location(integer $id = null)
* @method Order Order(integer $id = null)
*
*/
class
ShopifyApp
...
...
@@ -65,6 +68,7 @@ class ShopifyApp
'InventoryItem'
,
'InventoryLevel'
,
'Location'
,
'Order'
,
];
protected
$childResources
=
array
(
...
...
src/Shopify/lib/Order.php
0 → 100644
View file @
ce4f159e
<?php
/**
* Created by PhpStorm.
* User: Zero
* Date: 2020/9/2
* Time: 16:50
*/
namespace
Meibuyu\Micro\Shopify\lib
;
/**
* Class Order
* @package Meibuyu\Micro\Shopify\lib
*
* @method array close() Close an Order
* @method array open() Re-open a closed Order
* @method array cancel(array $data) Cancel an Order
*/
class
Order
extends
AbstractShopify
{
protected
$resourceKey
=
'order'
;
protected
$customPostActions
=
[
'close'
,
'open'
,
'cancel'
,
];
}
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