Commit d941cbce authored by zhangdongying's avatar zhangdongying
Browse files

团队仓库和分销产品RPC

parent 60a88cfc
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
<?php
/**
 * 分销产品
 *
 * @author zhangdongying
 * @date   2023-09-19
 */
declare(strict_types=1);

namespace Meibuyu\Rpc\Service\Interfaces\Store;

interface DistributionProductServiceInterface
{
    /**
     * 通过子SKU数组获取列表
     *
     * @param array $childSkus 子SKU数组
     * @param array $columns 字段数组
     * @return array
     */
    public function getListByChildSkus(array $childSkus, array $columns = []): array;
}
 No newline at end of file
+23 −0
Original line number Diff line number Diff line
<?php
/**
 * (团队)仓库
 *
 * @author zhangdongying
 * @date   2023-09-19
 */
declare(strict_types=1);

namespace Meibuyu\Rpc\Service\Interfaces\Store;

interface TeamWarehouseServiceInterface
{
    /**
     * 通过仓库名称数组获取列表
     *
     * @param array $names 仓库名称数组
     * @param array $columns 列名数组
     * @param array $relations 关联数组
     * @return array 默认keyBy('name')
     */
    public function getListByNames(array $names, array $columns = ['*'], array $relations = []): array;
}
 No newline at end of file