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
61042b7a
Commit
61042b7a
authored
Jan 24, 2022
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编写样品转换产品和检查产品是否上架RPC方法
parent
471b3c65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
ProductServiceInterface.php
src/Service/Interfaces/Product/ProductServiceInterface.php
+48
-0
No files found.
src/Service/Interfaces/Product/ProductServiceInterface.php
View file @
61042b7a
...
@@ -155,4 +155,52 @@ interface ProductServiceInterface
...
@@ -155,4 +155,52 @@ interface ProductServiceInterface
*/
*/
public
function
downApprove
(
$data
);
public
function
downApprove
(
$data
);
/**
* 样品转换产品
* @param array $params
* $params = [
* 'product' => [ // 产品信息
* 'specimen_code' => 'ABC123', // 样品编码,必填
* 'name' => '裙子', // 产品中文名,选填
* 'en_name' => 'dress', // 产品英文名,选填
* 'brand_id' => 123, // 品牌id,选填
* 'team_ids' => [1,2,3], // 团队id数组,选填
* 'hs_code' => '6109909060', // 海关编号,选填
* 'origin_country_id' => 123, // 原产国,选填
* 'production_address' => '苏州', // 境内货源地,选填
* 'unit' => '件', // 单位,必填
* 'category_id' => 123, // 品类id,必填
* 'ingredient_id' => 123, // 成分id,选填
* 'product_name_id' => 123, // 品名id,必填
* 'style' => '复古', // 风格/款式,选填
* 'creator_id' => 123, // 创建人id,,必填
* ],
* 'material' => [] // 原料信息,暂无
* ];
* @return array
* @throws \Meibuyu\Rpc\Exceptions\RpcException
* @author Zero
*/
public
function
specimenTransformToProduct
(
array
$params
);
/**
* 检查产品是否上架
* @param array $params
* 参数可以通过id数组或者sku数组查询,二者传一就行,都传仅id生效
* $params = [
* 'ids' => [1,2,3], // 产品id数组
* 'skus' => ['sku1', 'sku2', 'sku3'], // 产品sku数组,全等查询非模糊
* ];
* @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', 'hs_code', 'origin_country_id', 'production_address',
* 'unit', 'category_id', 'ingredient_id', 'product_name_id', 'type_id', 'status_id', 'style',
* 'info_completed', 'creator_id']
* @return array 返回已上架产品信息
* @throws \Meibuyu\Rpc\Exceptions\RpcException
* @author Zero
*/
public
function
checkPublished
(
array
$params
,
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