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
99a3448c
Commit
99a3448c
authored
Jun 08, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化产品rpc接口文件
parent
80b39412
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
26 deletions
+21
-26
PlatformProductChildServiceInterface.php
...terfaces/Product/PlatformProductChildServiceInterface.php
+14
-13
PlatformProductServiceInterface.php
...ce/Interfaces/Product/PlatformProductServiceInterface.php
+7
-13
No files found.
src/Service/Interfaces/Product/PlatformProductChildServiceInterface.php
View file @
99a3448c
...
...
@@ -15,41 +15,42 @@ interface PlatformProductChildServiceInterface
* 获取单个数据
* @param int $id 平台产品id
* @param array $relations 平台子产品的关联关系,支持:["platform_product","product_child"]
* @param array $columns 平台子产品表的字段,默认['id','platform_product_id','product_child_id','platform_product_child_sku','asin','fnsku','is_sale']
* @return array
* @param array $columns 平台子产品表的字段,默认全部字段
* ['id','platform_product_id','product_child_id','platform_product_child_sku','asin','fnsku','is_sale']
* @return array|null
*/
public
function
get
(
$id
,
array
$relations
=
[]
,
$columns
=
[
'id'
,
'platform_product_id'
,
'product_child_id'
,
'platform_product_child_sku'
,
'asin'
,
'fnsku'
,
'is_sale'
])
:
array
;
public
function
get
(
$id
,
array
$relations
=
[],
$columns
=
[
'*'
]);
/**
* 通过id列表获取平台子产品数组
* @param array $idList 平台子产品id的列表
* @param array $relations 平台子产品的关联关系,支持:["platform_product","product_child"]
* @param array $columns 平台子产品表的字段,默认['id','platform_product_id','product_child_id','platform_product_child_sku','asin','fnsku','is_sale']
* @param array $columns 平台子产品表的字段,默认全部字段
* ['id','platform_product_id','product_child_id','platform_product_child_sku','asin','fnsku','is_sale']
* @return array
*/
public
function
getByIdList
(
array
$idList
,
array
$relations
=
[]
,
$columns
=
[
'id'
,
'platform_product_id'
,
'product_child_id'
,
'platform_product_child_sku'
,
'asin'
,
'fnsku'
,
'is_sale'
])
:
array
;
public
function
getByIdList
(
array
$idList
,
array
$relations
=
[],
$columns
=
[
'*'
])
:
array
;
/**
* 获取单个数据
* @param string $sku 平台子产品sku
* @param int $siteId 平台子产品所属站点
* @param array $relations 平台子产品的关联关系,支持:["platform_product","product_child"]
* @param array $columns 平台子产品表的字段,默认['id','platform_product_id','product_child_id','platform_product_child_sku','asin','fnsku','is_sale']
* @param array $columns 平台子产品表的字段,默认全部字段
* ['id','platform_product_id','product_child_id','platform_product_child_sku','asin','fnsku','is_sale']
* @return array
*/
public
function
getBySku
(
$sku
,
$siteId
,
array
$relations
=
[]
,
$columns
=
[
'id'
,
'platform_product_id'
,
'product_child_id'
,
'platform_product_child_sku'
,
'asin'
,
'fnsku'
,
'is_sale'
])
:
array
;
public
function
getBySku
(
$sku
,
$siteId
,
array
$relations
=
[],
$columns
=
[
'*'
])
:
array
;
/**
* 通过sku列表获取平台子产品数组
* @param array $skuList 平台子产品sku的列表
* @param int $siteId 平台子产品所属站点
* @param array $relations 平台子产品的关联关系,支持:["platform_product","product_child"]
* @param array $columns 平台子产品表的字段,默认['id','platform_product_id','product_child_id','platform_product_child_sku','asin','fnsku','is_sale']
* @param array $columns 平台子产品表的字段,默认全部字段
* ['id','platform_product_id','product_child_id','platform_product_child_sku','asin','fnsku','is_sale']
* @return array
*/
public
function
getBySkuList
(
array
$skuList
,
$siteId
,
array
$relations
=
[]
,
$columns
=
[
'id'
,
'platform_product_id'
,
'product_child_id'
,
'platform_product_child_sku'
,
'asin'
,
'fnsku'
,
'is_sale'
])
:
array
;
public
function
getBySkuList
(
array
$skuList
,
$siteId
,
array
$relations
=
[]
,
$columns
=
[
'*'
])
:
array
;
}
src/Service/Interfaces/Product/PlatformProductServiceInterface.php
View file @
99a3448c
...
...
@@ -15,27 +15,21 @@ interface PlatformProductServiceInterface
* 获取单个数据
* @param int $id 平台产品id
* @param array $relations 平台产品的关联关系,支持:["status","product","amazon_warehouse","platform_product_children"]
* @param array $columns 平台产品表的字段,默认
['id', 'sku', 'product_id', 'name', 'team_id', 'site_id', 'price'
* , 'currency_id', 'platform_product_status_id', 'creator_id', 'asin', 'amazon_warehouse_id', 'info_completed']
* @return array
* @param array $columns 平台产品表的字段,默认
全部字段
*
['id', 'sku', 'product_id', 'name', 'team_id', 'site_id', 'price'
, 'currency_id', 'platform_product_status_id', 'creator_id', 'asin', 'amazon_warehouse_id', 'info_completed']
* @return array
|null
*/
public
function
get
(
$id
,
array
$relations
=
[]
,
$columns
=
[
'id'
,
'sku'
,
'product_id'
,
'name'
,
'team_id'
,
'site_id'
,
'price'
,
'currency_id'
,
'platform_product_status_id'
,
'creator_id'
,
'asin'
,
'amazon_warehouse_id'
,
'info_completed'
])
:
array
;
public
function
get
(
$id
,
array
$relations
=
[],
$columns
=
[
'*'
]);
/**
* 通过id列表获取平台产品数组
* @param array $idList 平台产品id的列表
* @param array $relations 平台产品的关联关系,支持["status","product","amazon_warehouse","platform_product_children"]
* @param array $columns 平台产品表的字段,默认
['id', 'sku', 'product_id', 'name', 'team_id', 'site_id', 'price'
* , 'currency_id', 'platform_product_status_id', 'creator_id', 'asin', 'amazon_warehouse_id', 'info_completed']
* @param array $columns 平台产品表的字段,默认
全部字段
*
['id', 'sku', 'product_id', 'name', 'team_id', 'site_id', 'price'
, 'currency_id', 'platform_product_status_id', 'creator_id', 'asin', 'amazon_warehouse_id', 'info_completed']
* @return array
*/
public
function
getByIdList
(
array
$idList
,
array
$relations
=
[]
,
$columns
=
[
'id'
,
'sku'
,
'product_id'
,
'name'
,
'team_id'
,
'site_id'
,
'price'
,
'currency_id'
,
'platform_product_status_id'
,
'creator_id'
,
'asin'
,
'amazon_warehouse_id'
,
'info_completed'
])
:
array
;
public
function
getByIdList
(
array
$idList
,
array
$relations
=
[],
$columns
=
[
'*'
])
:
array
;
/**
* 获取全部平台产品状态列表
...
...
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