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
901fa6fb
Commit
901fa6fb
authored
Jul 06, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化产品服务rpc
parent
c05fb782
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ProductServiceInterface.php
src/Service/Interfaces/Product/ProductServiceInterface.php
+5
-5
No files found.
src/Service/Interfaces/Product/ProductServiceInterface.php
View file @
901fa6fb
...
...
@@ -21,7 +21,7 @@ interface ProductServiceInterface
* , 'bar_code', 'bar_code_image', 'creator_id', 'hot']
* @return array|null
*/
public
function
get
(
$id
,
array
$relations
=
[],
$columns
=
[
'*'
]);
public
function
get
(
$id
,
array
$relations
=
[],
array
$columns
=
[
'*'
]);
/**
* 通过id列表获取产品数组
...
...
@@ -79,7 +79,7 @@ interface ProductServiceInterface
* @param array $relations ['report_points']
* @return array 默认keyBY('id')
*/
public
function
getProductNamesByIds
(
array
$ids
,
array
$columns
=
[
'id'
,
'name'
,
'en_name'
],
$relations
=
[])
:
array
;
public
function
getProductNamesByIds
(
array
$ids
,
array
$columns
=
[
'id'
,
'name'
,
'en_name'
],
array
$relations
=
[])
:
array
;
/**
* 通过id获取品类
...
...
@@ -96,7 +96,7 @@ interface ProductServiceInterface
* @param array $relations ['report_points']
* @return array|null
*/
public
function
getProductNameById
(
int
$id
,
array
$columns
=
[
'id'
,
'name'
,
'en_name'
],
$relations
=
[]);
public
function
getProductNameById
(
int
$id
,
array
$columns
=
[
'id'
,
'name'
,
'en_name'
],
array
$relations
=
[]);
/**
* 通过id数组获取申报要素列表
...
...
@@ -105,7 +105,7 @@ interface ProductServiceInterface
* @param array $relations ['product_name', 'ingredient']
* @return array 默认keyBY('id')
*/
public
function
getReportPointsByIds
(
array
$ids
,
$relations
=
[],
array
$columns
=
[
'id'
,
'hs_code'
,
'point'
])
:
array
;
public
function
getReportPointsByIds
(
array
$ids
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
'hs_code'
,
'point'
])
:
array
;
/**
* 通过id获取申报要素
...
...
@@ -114,6 +114,6 @@ interface ProductServiceInterface
* @param array $relations ['product_name', 'ingredient']
* @return array|null
*/
public
function
getReportPointById
(
int
$id
,
$relations
=
[],
array
$columns
=
[
'id'
,
'hs_code'
,
'point'
]);
public
function
getReportPointById
(
int
$id
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
'hs_code'
,
'point'
]);
}
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