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
9040d1a5
Commit
9040d1a5
authored
Jun 13, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化产品rpc接口文件
parent
eec8b9b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
ProductServiceInterface.php
src/Service/Interfaces/Product/ProductServiceInterface.php
+6
-14
No files found.
src/Service/Interfaces/Product/ProductServiceInterface.php
View file @
9040d1a5
...
...
@@ -15,17 +15,13 @@ interface ProductServiceInterface
* 获取单个数据
* @param int $id 产品id
* @param array $relations 产品的关联关系,支持:["brand","category","ingredient","product_name","status","type","images","price_info","product_children"]
* @param array $columns 产品表的字段,默认
['id', 'sku', 'name', 'en_name', 'brand_id'
*
, 'team_id', 'hs_code', 'origin_country_id', 'production_address', 'unit', 'category_id'
* , 'ingredient_id', 'product_name_id', 'type_id', 'status_id', 'style', 'info_completed'
* @param array $columns 产品表的字段,默认
全部字段
*
['id', 'sku', 'name', 'en_name', 'brand_id', 'team_id', 'hs_code', 'origin_country_id', 'production_address',
*
'unit', 'category_id'
, 'ingredient_id', 'product_name_id', 'type_id', 'status_id', 'style', 'info_completed'
* , 'bar_code', 'bar_code_image', 'creator_id', 'hot']
* @return array
* @return array
|null
*/
public
function
get
(
$id
,
array
$relations
=
[]
,
$columns
=
[
'id'
,
'sku'
,
'name'
,
'en_name'
,
'brand_id'
,
'team_id'
,
'hs_code'
,
'origin_country_id'
,
'production_address'
,
'unit'
,
'category_id'
,
'ingredient_id'
,
'product_name_id'
,
'type_id'
,
'status_id'
,
'style'
,
'info_completed'
,
'bar_code'
,
'bar_code_image'
,
'creator_id'
,
'hot'
])
:
array
;
public
function
get
(
$id
,
array
$relations
=
[],
$columns
=
[
'*'
]);
/**
* 通过id列表获取产品数组
...
...
@@ -37,11 +33,7 @@ interface ProductServiceInterface
* , 'bar_code', 'bar_code_image', 'creator_id', 'hot']
* @return array
*/
public
function
getByIdList
(
array
$idList
,
array
$relations
=
[]
,
array
$columns
=
[
'id'
,
'sku'
,
'name'
,
'en_name'
,
'brand_id'
,
'team_id'
,
'hs_code'
,
'origin_country_id'
,
'production_address'
,
'unit'
,
'category_id'
,
'ingredient_id'
,
'product_name_id'
,
'type_id'
,
'status_id'
,
'style'
,
'info_completed'
,
'bar_code'
,
'bar_code_image'
,
'creator_id'
,
'hot'
])
:
array
;
public
function
getByIdList
(
array
$idList
,
array
$relations
=
[],
array
$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