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
b1f44d27
Commit
b1f44d27
authored
May 15, 2020
by
梁俊杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
原料模块服务接口
parent
7a8ce010
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
0 deletions
+82
-0
MaterialServiceInterface.php
src/Service/Interfaces/MaterialServiceInterface.php
+82
-0
No files found.
src/Service/Interfaces/MaterialServiceInterface.php
0 → 100644
View file @
b1f44d27
<?php
/**
* Created by PhpStorm.
* User: 梁俊杰
* Date: 2020/5/15
* Time: 15:07
*/
namespace
Meibuyu\Micro\Service\Interfaces
;
interface
MaterialServiceInterface
{
/**
* 获取单个数据
* @param int $id 原料id
* @param array $relations 关联关系,支持:["material_name","color"]
* @return array
*/
public
function
get
(
$id
,
array
$relations
=
[])
:
array
;
/**
* 通过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
;
/**
* 通过原料列表
* @param int $page 第几页数据,默认:1
* @param array $relations 原料的关联关系,支持["material_name","color"]
* @param int $pageSize 每页条数默认:15,最大支持100
* @param array $columns 原料表的字段,默认显示全部
* @return array
*/
public
function
list
(
$page
=
1
,
array
$relations
=
[],
$pageSize
=
15
,
array
$columns
=
[
'*'
])
:
array
;
/**
* 获取某个原料品名
* @param int $materialNameId 原料品名编号
* @param array $relations 原料的关联关系,支持["materials","material_name_category"]
* @return array
*/
public
function
getMaterialName
(
$materialNameId
,
array
$relations
=
[])
:
array
;
/**
* 通过id列表获取原料品名数组
* @param array $idList 原料品名id的列表
* @param array $relations 原料品名的关联关系,支持["materials","material_name_category"]
* @param array $columns 原料品名表的字段,默认显示全部
* @return array
*/
public
function
getMaterialNameByIdList
(
array
$idList
,
array
$relations
=
[],
array
$columns
=
[
'*'
])
:
array
;
/**
* 通过原料品名列表
* @param int $page 第几页数据,默认:1
* @param array $relations原料品名的关联关系,支持 ["materials","material_name_category"]
* @param int $pageSize 每页条数默认:15,最大支持100
* @param array $columns 原料品名表的字段,默认显示全部
* @return array
*/
public
function
getMaterialNamelist
(
$page
=
1
,
array
$relations
=
[],
$pageSize
=
15
,
array
$columns
=
[
'*'
])
:
array
;
/** 获取原料类型
* @param int $materialNameCategoryId 原料类型编号
* @return array
*/
public
function
getMaterialNameCategory
(
$materialNameCategoryId
)
:
array
;
/**
* 获取全部原料类型
* @return array
*/
public
function
materialNameCategories
()
:
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