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
1b7d4b81
Commit
1b7d4b81
authored
Jul 08, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品rpc
* 获取仓库子sku对应的平台子sku * 获取某产品下的所有子产品
parent
2ae4dc84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
PlatformProductChildServiceInterface.php
...terfaces/Product/PlatformProductChildServiceInterface.php
+9
-0
ProductChildServiceInterface.php
...rvice/Interfaces/Product/ProductChildServiceInterface.php
+8
-0
No files found.
src/Service/Interfaces/Product/PlatformProductChildServiceInterface.php
View file @
1b7d4b81
...
...
@@ -61,4 +61,13 @@ interface PlatformProductChildServiceInterface
*/
public
function
getIdsByChildSku
(
string
$childSku
,
array
$limitIds
=
null
);
/**
* 获取仓库子sku对应的平台子sku
* @param array $productChildIds 已去重
* @param null $siteId 指定站点id, 不传或传null,获取全部数据
* @param array $columns
* @return array
*/
public
function
getListByProductChildIds
(
array
$productChildIds
,
$siteId
=
null
,
array
$columns
=
[
'*'
]);
}
src/Service/Interfaces/Product/ProductChildServiceInterface.php
View file @
1b7d4b81
...
...
@@ -83,4 +83,12 @@ interface ProductChildServiceInterface
*/
public
function
getColorById
(
int
$id
,
array
$columns
=
[
'id'
,
'code'
,
'cn_name'
,
'en_name'
]);
/**
* 获取某产品下的所有子产品
* @param int $productId
* @param array $columns
* @return array
*/
public
function
getListByProductId
(
int
$productId
,
$columns
=
[
'id'
,
'child_sku'
]);
}
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