Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-micro
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
1
Merge Requests
1
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-micro
Commits
ef29af67
Commit
ef29af67
authored
Aug 21, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[优化]更新注释
parent
14e33da5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
PlatformProductChildServiceInterface.php
...terfaces/Product/PlatformProductChildServiceInterface.php
+5
-5
ProductChildServiceInterface.php
...rvice/Interfaces/Product/ProductChildServiceInterface.php
+3
-3
No files found.
src/Service/Interfaces/Product/PlatformProductChildServiceInterface.php
View file @
ef29af67
...
...
@@ -24,7 +24,7 @@ interface PlatformProductChildServiceInterface
/**
* 通过id列表获取平台子产品数组
* @param array $idList 平台子产品id的列表, 默认去重
* @param array $relations 平台子产品的关联关系,支持:["platform_product","product_child","weight"]
* @param array $relations 平台子产品的关联关系,支持:["platform_product","product_child","weight"
,"packs"
]
* @param array $columns 平台子产品表的字段,默认全部字段
* ['id','platform_product_id','product_child_id','platform_product_child_sku','asin','fnsku','is_sale']
* @return array 默认keyBy('id')
...
...
@@ -35,7 +35,7 @@ interface PlatformProductChildServiceInterface
* 获取单个数据
* @param string $sku 平台子产品sku
* @param int $siteId 平台子产品所属站点
* @param array $relations 平台子产品的关联关系,支持:["platform_product","product_child","weight"]
* @param array $relations 平台子产品的关联关系,支持:["platform_product","product_child","weight"
,"packs"
]
* @param array $columns 平台子产品表的字段,默认全部字段
* ['id','platform_product_id','product_child_id','platform_product_child_sku','asin','fnsku','is_sale']
* @return array
...
...
@@ -46,7 +46,7 @@ interface PlatformProductChildServiceInterface
* 通过sku列表获取平台子产品数组
* @param array $skuList 平台子产品sku的列表, 默认去重
* @param int $siteId 平台子产品所属站点
* @param array $relations 平台子产品的关联关系,支持:["platform_product","product_child","weight"]
* @param array $relations 平台子产品的关联关系,支持:["platform_product","product_child","weight"
,"packs"
]
* @param array $columns 平台子产品表的字段,默认全部字段
* ['id','platform_product_id','product_child_id','platform_product_child_sku','asin','fnsku','is_sale']
* @return array 默认keyBy('platform_product_child_sku')
...
...
@@ -62,7 +62,7 @@ interface PlatformProductChildServiceInterface
public
function
getIdsByChildSku
(
string
$childSku
,
array
$limitIds
=
null
);
/**
* 获取仓库
子sku对应的平台子
sku
* 获取仓库
主sku对应的平台主
sku
* @param array $productChildIds 已去重
* @param null $siteId 指定站点id, 不传或传null,获取全部数据
* @param array $columns
...
...
@@ -74,7 +74,7 @@ interface PlatformProductChildServiceInterface
* 通过仓库产品id获取平台子产品数组
* @param $productId
* @param null $siteId
* @param array $relations
* @param array $relations
平台子产品的关联关系,支持:["platform_product","product_child","weight","packs"]
* @param array $columns
* @return array
*/
...
...
src/Service/Interfaces/Product/ProductChildServiceInterface.php
View file @
ef29af67
...
...
@@ -15,7 +15,7 @@ interface ProductChildServiceInterface
* 获取单个数据
* @param int $id 子SKU id
* @param array $columns 子SKU表的字段,默认显示全部
* @param array $relations 子SKU的关联关系,可传入['brand', 'category', 'product_name', 'images', 'cost']
* @param array $relations 子SKU的关联关系,可传入['brand', 'category', 'product_name', 'images', 'cost'
, 'weight', 'packs'
]
* @return array|null
*/
public
function
get
(
$id
,
array
$columns
=
[
'*'
],
array
$relations
=
[]);
...
...
@@ -24,7 +24,7 @@ interface ProductChildServiceInterface
* 通过id列表获取产品数组
* @param array $idList 子SKUid的列表, 默认去重
* @param array $columns 子SKU表的字段,默认显示全部
* @param array $relations 子SKU的关联关系,可传入['brand', 'category', 'product_name', 'images', 'cost']
* @param array $relations 子SKU的关联关系,可传入['brand', 'category', 'product_name', 'images', 'cost'
, 'weight', 'packs'
]
* @return array 默认keyBy('id')
*/
public
function
getByIdList
(
array
$idList
,
array
$columns
=
[
'*'
],
array
$relations
=
[])
:
array
;
...
...
@@ -33,7 +33,7 @@ interface ProductChildServiceInterface
* 通过sku列表获取子产品列表
* @param array $skuList 默认去重
* @param array $columns 子SKU表的字段,默认返回id
* @param array $relations 子SKU的关联关系,可传入['color', 'size','brand', 'category', 'product_name', 'images', 'cost', 'weight']
* @param array $relations 子SKU的关联关系,可传入['color', 'size','brand', 'category', 'product_name', 'images', 'cost', 'weight'
, 'packs'
]
* @return array 默认keyBy('child_sku')
*/
public
function
getListBySkuList
(
array
$skuList
,
array
$columns
=
[
'id'
],
array
$relations
=
[]);
...
...
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