Commit 901fa6fb authored by 王源's avatar 王源 🎧

优化产品服务rpc

parent c05fb782
...@@ -21,7 +21,7 @@ interface ProductServiceInterface ...@@ -21,7 +21,7 @@ interface ProductServiceInterface
* , 'bar_code', 'bar_code_image', 'creator_id', 'hot'] * , 'bar_code', 'bar_code_image', 'creator_id', 'hot']
* @return array|null * @return array|null
*/ */
public function get($id, array $relations = [], $columns = ['*']); public function get($id, array $relations = [], array $columns = ['*']);
/** /**
* 通过id列表获取产品数组 * 通过id列表获取产品数组
...@@ -79,7 +79,7 @@ interface ProductServiceInterface ...@@ -79,7 +79,7 @@ interface ProductServiceInterface
* @param array $relations ['report_points'] * @param array $relations ['report_points']
* @return array 默认keyBY('id') * @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获取品类 * 通过id获取品类
...@@ -96,7 +96,7 @@ interface ProductServiceInterface ...@@ -96,7 +96,7 @@ interface ProductServiceInterface
* @param array $relations ['report_points'] * @param array $relations ['report_points']
* @return array|null * @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数组获取申报要素列表 * 通过id数组获取申报要素列表
...@@ -105,7 +105,7 @@ interface ProductServiceInterface ...@@ -105,7 +105,7 @@ interface ProductServiceInterface
* @param array $relations ['product_name', 'ingredient'] * @param array $relations ['product_name', 'ingredient']
* @return array 默认keyBY('id') * @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获取申报要素 * 通过id获取申报要素
...@@ -114,6 +114,6 @@ interface ProductServiceInterface ...@@ -114,6 +114,6 @@ interface ProductServiceInterface
* @param array $relations ['product_name', 'ingredient'] * @param array $relations ['product_name', 'ingredient']
* @return array|null * @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']);
} }
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