Commit f0fc0b70 authored by gongyuanbiao's avatar gongyuanbiao

Merge branch 'develop' of http://git.huaperfect.com/without_auth/meibuyu-rpc into develop

parents fca63b00 7c64d8ef
<?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
<?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;
}
...@@ -103,4 +103,21 @@ interface PlatformProductChildServiceInterface ...@@ -103,4 +103,21 @@ interface PlatformProductChildServiceInterface
*/ */
public function getPackListByColorSizeIds($productId, $siteId, $colorIds, $sizeId); 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 = ['*']);
} }
...@@ -155,13 +155,13 @@ interface ProductServiceInterface ...@@ -155,13 +155,13 @@ interface ProductServiceInterface
*/ */
public function downApprove($data); public function downApprove($data);
/** // /**
* 通过id数组获取品牌列表 // * 通过id数组获取品牌列表
* @param array $ids 默认去重 // * @param array $ids 默认去重
* @param array $columns // * @param array $columns
* @return array 默认keyBY('id') // * @return array 默认keyBY('id')
*/ // */
public function getBrandsByIds(array $ids, array $columns = ['id', 'name']): array; // public function getBrandsByIds(array $ids, array $columns = ['id', 'name']): array;
/** /**
* 样品转换产品 * 样品转换产品
......
...@@ -307,4 +307,11 @@ interface StoreServiceInterface ...@@ -307,4 +307,11 @@ interface StoreServiceInterface
* Date: 2020/12/14 * Date: 2020/12/14
*/ */
public function cancelOrderDeliver($sourceNos, $field): int; public function cancelOrderDeliver($sourceNos, $field): int;
/**
* 通过仓库区域id获取仓库区域信息
* @param array $ids
* @return array
*/
public function getWarehouseAreaByIdList(array $ids = []): array;
} }
...@@ -11,9 +11,9 @@ namespace Meibuyu\Rpc\Service\Interfaces\SyncDataService; ...@@ -11,9 +11,9 @@ namespace Meibuyu\Rpc\Service\Interfaces\SyncDataService;
interface SyncMagentoServiceInterface interface SyncMagentoServiceInterface
{ {
/** /**
* @param $platformOrderId 平台单号id * @param int $platformOrderId 平台单号id
* @param int $pageSize 每页最多展示50条 * @param int $pageSize 每页最多展示50条
* @return array * @return bool
*/ */
public function syncOrders($platformOrderId, $pageSize = 10):array; public function syncOrders(int $platformOrderId, $pageSize = 10):bool;
} }
<?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;
}
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