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
5b389d4d
Commit
5b389d4d
authored
May 16, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改原料rpc服务接口文件
parent
87fdb423
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
MaterialServiceInterface.php
src/Service/Interfaces/MaterialServiceInterface.php
+4
-7
No files found.
src/Service/Interfaces/MaterialServiceInterface.php
View file @
5b389d4d
...
...
@@ -14,19 +14,18 @@ interface MaterialServiceInterface
/**
* 获取单个数据
* @param int $id 原料id
* @param array $
relations 关联关系,支持:["material_name","color"]
* @return array
* @param array $
columns 原料表的字段,默认显示全部
* @return array
|null
*/
public
function
get
(
$id
,
array
$
relations
=
[])
:
array
;
public
function
get
(
$id
,
array
$
columns
=
[
'*'
])
;
/**
* 通过id列表获取原料数组
* @param array $idList 原料id的列表
* @param array $relations 原料的关联关系,支持["material_name","color"]
* @param array $columns 原料表的字段,默认显示全部
* @return array
*/
public
function
getByIdList
(
array
$idList
,
array
$
relations
=
[],
array
$
columns
=
[
'*'
])
:
array
;
public
function
getByIdList
(
array
$idList
,
array
$columns
=
[
'*'
])
:
array
;
/**
* 通过原料品名id列表获取原料数组
...
...
@@ -47,7 +46,6 @@ interface MaterialServiceInterface
*/
public
function
list
(
$page
=
1
,
array
$relations
=
[],
$pageSize
=
15
,
array
$columns
=
[
'*'
])
:
array
;
/**
* 获取某个原料品名
* @param int $materialNameId 原料品名编号
...
...
@@ -84,7 +82,6 @@ interface MaterialServiceInterface
*/
public
function
getMaterialNamelist
(
$page
=
1
,
array
$relations
=
[],
$pageSize
=
15
,
array
$columns
=
[
'*'
])
:
array
;
/** 根据id获取原料类型
* @param int $materialNameCategoryId 原料类型编号
* @param array $relations 原料类型的关联关系,支持 ["material_name"]
...
...
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