Commit d2b6326e authored by 王源's avatar 王源 🎧

Merge branch 'product' into develop

parents 97a147d7 61042b7a
......@@ -155,4 +155,52 @@ interface ProductServiceInterface
*/
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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment