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

添加申报要素rpc

parent 7507c93a
......@@ -98,4 +98,22 @@ interface ProductServiceInterface
*/
public function getProductNameById(int $id, array $columns = ['id', 'name', 'en_name'], $relations = []);
/**
* 通过id数组获取申报要素列表
* @param array $ids 默认去重
* @param array $columns
* @param array $relations ['product_name', 'ingredient']
* @return array 默认keyBY('id')
*/
public function getReportPointsByIds(array $ids, $relations = [], array $columns = ['id', 'hs_code', 'point']): array;
/**
* 通过id获取申报要素
* @param int $id
* @param array $columns
* @param array $relations ['product_name', 'ingredient']
* @return array|null
*/
public function getReportPointById(int $id, $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