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
f0fc0b70
Commit
f0fc0b70
authored
May 04, 2022
by
gongyuanbiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://git.huaperfect.com/without_auth/meibuyu-rpc
into develop
parents
fca63b00
7c64d8ef
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
143 additions
and
10 deletions
+143
-10
SupplyCustomerServiceInterface.php
...Service/Interfaces/Mdm/SupplyCustomerServiceInterface.php
+35
-0
MagentoProductServiceInterface.php
...ice/Interfaces/Product/MagentoProductServiceInterface.php
+33
-0
PlatformProductChildServiceInterface.php
...terfaces/Product/PlatformProductChildServiceInterface.php
+17
-0
ProductServiceInterface.php
src/Service/Interfaces/Product/ProductServiceInterface.php
+7
-7
StoreServiceInterface.php
src/Service/Interfaces/Store/StoreServiceInterface.php
+7
-0
SyncMagentoServiceInterface.php
...nterfaces/SyncDataService/SyncMagentoServiceInterface.php
+3
-3
AuthenticationInterface.php
src/Service/Interfaces/User/AuthenticationInterface.php
+41
-0
No files found.
src/Service/Interfaces/Mdm/SupplyCustomerServiceInterface.php
0 → 100644
View file @
f0fc0b70
<?php
namespace
Meibuyu\Rpc\Service\Interfaces\Mdm
;
interface
SupplyCustomerServiceInterface
{
/**
* @param array $ids 主键id
* @param array $fields 获取的字段数组
* @return array
*/
public
function
availableList
(
array
$ids
,
$fields
=
[
'*'
])
:
array
;
/**
* @param array $ids 主键id
* @param array $fields 获取的字段数组
* @return array
*/
public
function
list
(
array
$ids
,
$fields
=
[
'*'
])
:
array
;
/**
* @param array $id 主键id
* @param array $fields 获取的字段数组
* @return array
*/
public
function
get
(
$id
,
$fields
=
[
'*'
])
:
array
;
}
\ No newline at end of file
src/Service/Interfaces/Product/MagentoProductServiceInterface.php
0 → 100644
View file @
f0fc0b70
<?php
/**
* Created by PhpStorm.
* User: Zero
* Date: 2020/10/12
* Time: 9:39
*/
namespace
Meibuyu\Rpc\Service\Interfaces\Product
;
interface
MagentoProductServiceInterface
{
/**
* 通过magento子产品的属性获取仓库单个产品信息
* @param string $platformProductSku magento 平台主sku
* @param string $color 颜色
* @param string $size 尺码
* @param int $siteId
* @return array
*/
public
function
getChildByAttributes
(
int
$siteId
,
string
$platformProductSku
,
string
$color
,
string
$size
)
:
array
;
/**
* 通过magento子产品的属性获取仓库批量产品信息
* @param int $siteId
* @param array $attributes
* [['platform_product_sku' => $platformProductSku, 'color' => $color, 'size' => $size]]
* @return array
*/
public
function
getChildrenByAttributes
(
int
$siteId
,
array
$attributes
)
:
array
;
}
src/Service/Interfaces/Product/PlatformProductChildServiceInterface.php
View file @
f0fc0b70
...
...
@@ -103,4 +103,21 @@ interface PlatformProductChildServiceInterface
*/
public
function
getPackListByColorSizeIds
(
$productId
,
$siteId
,
$colorIds
,
$sizeId
);
/**
* 根据平台子 SKU 获取对应的平台主 SKU 以及仓库主/子 SKU
* @param array $platformChildSkus
* @param string[] $columns
* @param integer $siteId 网站 ID
* @return array
*/
public
function
getWarehouseProductByPlatformSku
(
array
$platformChildSkus
,
$siteId
,
$columns
=
[
'*'
]);
/**
* 根据平台子 SKU 获取对应的平台主 SKU 以及仓库主/子 SKU
* @param array $asins
* @param integer $siteId 站点 ID
* @param string[] $columns
* @return array
*/
public
function
getWarehouseProductByFnSku
(
array
$fnSku
,
$siteId
,
$columns
=
[
'*'
]);
}
src/Service/Interfaces/Product/ProductServiceInterface.php
View file @
f0fc0b70
...
...
@@ -155,13 +155,13 @@ interface ProductServiceInterface
*/
public
function
downApprove
(
$data
);
/**
* 通过id数组获取品牌列表
* @param array $ids 默认去重
* @param array $columns
* @return array 默认keyBY('id')
*/
public
function
getBrandsByIds
(
array
$ids
,
array
$columns
=
[
'id'
,
'name'
])
:
array
;
//
/**
//
* 通过id数组获取品牌列表
//
* @param array $ids 默认去重
//
* @param array $columns
//
* @return array 默认keyBY('id')
//
*/
//
public function getBrandsByIds(array $ids, array $columns = ['id', 'name']): array;
/**
* 样品转换产品
...
...
src/Service/Interfaces/Store/StoreServiceInterface.php
View file @
f0fc0b70
...
...
@@ -307,4 +307,11 @@ interface StoreServiceInterface
* Date: 2020/12/14
*/
public
function
cancelOrderDeliver
(
$sourceNos
,
$field
)
:
int
;
/**
* 通过仓库区域id获取仓库区域信息
* @param array $ids
* @return array
*/
public
function
getWarehouseAreaByIdList
(
array
$ids
=
[])
:
array
;
}
src/Service/Interfaces/SyncDataService/SyncMagentoServiceInterface.php
View file @
f0fc0b70
...
...
@@ -11,9 +11,9 @@ namespace Meibuyu\Rpc\Service\Interfaces\SyncDataService;
interface
SyncMagentoServiceInterface
{
/**
* @param $platformOrderId 平台单号id
* @param
int
$platformOrderId 平台单号id
* @param int $pageSize 每页最多展示50条
* @return
array
* @return
bool
*/
public
function
syncOrders
(
$platformOrderId
,
$pageSize
=
10
)
:
array
;
public
function
syncOrders
(
int
$platformOrderId
,
$pageSize
=
10
)
:
bool
;
}
src/Service/Interfaces/User/AuthenticationInterface.php
0 → 100644
View file @
f0fc0b70
<?php
/**
* Created by PhpStorm.
* User: qjk
* Date: 2022/03/28
* Time: 15:07
*/
namespace
Meibuyu\Rpc\Service\Interfaces\User
;
interface
AuthenticationInterface
{
/**
* 获取对应用户能够看到的菜单
* @param string $applicationName
* @param integer $userId
* @return array
*/
public
function
getMenus
(
$applicationName
,
$userId
)
:
array
;
/**
* 获取对应用户的菜单权限
* @param string $applicationName 应用名称
* @param integer $userId 用户 ID
* @return array
*/
public
function
getButtons
(
$applicationName
,
$userId
,
$frontendPath
)
:
array
;
/**
* 获取对应路由的接口权限结果
* @param $path string 请求 URL 路径
* @param $method string 路由名字
* @param $applicationName string 应用名字
* @param $userId integer 用户 ID
* @return bool
*/
public
function
authByRouter
(
$applicationName
,
$path
,
$method
,
$userId
)
:
bool
;
}
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