Loading src/Service/Interfaces/Flow/FlowServiceInterface.php 0 → 100644 +44 −0 Original line number Diff line number Diff line <?php namespace Meibuyu\Rpc\Service\Interfaces\Flow; interface FlowServiceInterface { /** * Notes: 创建审批 * User: carlos * DateTime: 2022/11/9 14:16 * @param $params * [ * 'code' => '', //来源单号 * 'flow_code' => '',//审批code * 'user_id' => '',//申请人id * ] * @throws \Exception */ public function createApproval($params); /** * Notes: 审批 * User: carlos * DateTime: 2022/11/10 9:16 * @param $params * [ * 'code' => '', //来源单号 * 'user_id' => '', //审批人 * 'line_code' => '',//审批节点编码 * 'approval' => '', // 审批结果 通过、拒绝 pass reject * 'params' => '',//审批参数 * ] */ public function approval($params); /** * Notes: 获取审批详情 * User: carlos * DateTime: 2022/11/14 14:10 * @param $params */ public function getApprovalDetail($params); } No newline at end of file src/Service/Interfaces/Product/ProductServiceInterface.php +47 −0 Original line number Diff line number Diff line Loading @@ -244,6 +244,7 @@ interface ProductServiceInterface * 'package_volume' => 15.2, // 包装体积(cm3) * ], * 'material' => [] // 原料信息,暂无 * 'child_sku_data' => [] //必填 * ]; * @return array * @throws \Meibuyu\Rpc\Exceptions\RpcException Loading @@ -251,6 +252,52 @@ interface ProductServiceInterface */ public function updateSpecimenTransformToProduct(array $params,$sku_id,$status_id); /** * 创建样品转换的产品 * @param string $sku_id 主键 * @param array $status_id 允许转换的状态 * @param array $params 传入的参数 * $params = [ * 'product' => [ // 产品信息 * 'sku' => 'ABC123', // SKU,必填 * '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,必填 * 'images' => [], // 图片地址数组 * 'cost' => 12,5, // 生产成本 * 'package_cost' => 12,5, // 包装成本 * 'customs_unit_price' => 12,5, // 报关单价 * 'customs_cost' => 12,5, // 报关成本 * 'product_weight' => 15.2, // 产品重量(g) * 'product_length' => 15.2, // 产品长度(cm) * 'product_width' => 15.2, // 产品宽度(cm) * 'product_height' => 15.2, // 产品高度(cm) * 'product_volume' => 15.2, // 产品体积(cm3) * 'package_weight' => 15.2, // 包装重量(g) * 'package_length' => 15.2, // 包装长度(cm) * 'package_width' => 15.2, // 包装宽度(cm) * 'package_height' => 15.2, // 包装高度(cm) * 'package_volume' => 15.2, // 包装体积(cm3) * ], * 'material' => [] // 原料信息,暂无 * 'child_sku_data' => [] //必填 * ]; * @return array * @throws \Meibuyu\Rpc\Exceptions\RpcException * @author Zero */ public function createSpecimenTransformToProduct(array $params); /** * 检查产品是否上架 * @param array $params Loading src/Service/Interfaces/Production/ExternalDeliveryServiceInterface.php 0 → 100644 +38 −0 Original line number Diff line number Diff line <?php /** * 供应链礼服备货小货发货相关rpc服务 */ namespace Meibuyu\Rpc\Service\Interfaces\Production; interface ExternalDeliveryServiceInterface { /** * 查看指定生产单发货记录 * @param $params * @author Liu lu * date 2022-11-11 */ public function productionDeliveryDetail($params); /** * 创建发货记录 * @param $params * @author Liu lu * date 2022-11-14 */ public function createDeliveryRecord($params); /** * 待确认发货详情展示 * @param $productionId * @author Liu lu * date 2022-11-14 */ public function deliveryPendingDisplay($productionId); } No newline at end of file src/Service/Interfaces/Production/ExternalProductionServiceInterface.php 0 → 100644 +38 −0 Original line number Diff line number Diff line <?php /** * 供应链礼服备货小货生产单rpc服务 */ namespace Meibuyu\Rpc\Service\Interfaces\Production; interface ExternalProductionServiceInterface { /** * 生产单列表 * @return mixed * @param $params * @author Liu lu * date 2022-11-10 */ public function productionList($params); /** * 生产单列表标签 * @param $params * @author Liu lu * date 2022-11-10 */ public function productionTabList($params); /** * 生产单查看详情 * @author Liu lu * date 2022-11-11 */ public function productionView($id); } No newline at end of file src/Service/Interfaces/Production/ProductionServiceInterface.php +9 −0 Original line number Diff line number Diff line Loading @@ -147,4 +147,13 @@ interface ProductionServiceInterface */ public function isReadProductionMessage(array $params); /** * Notes: 获取礼服备货单信息 * User: carlos * DateTime: 2022/11/8 18:48 * @param $code * @return array */ public function getStockUpOrder($code): array; } Loading
src/Service/Interfaces/Flow/FlowServiceInterface.php 0 → 100644 +44 −0 Original line number Diff line number Diff line <?php namespace Meibuyu\Rpc\Service\Interfaces\Flow; interface FlowServiceInterface { /** * Notes: 创建审批 * User: carlos * DateTime: 2022/11/9 14:16 * @param $params * [ * 'code' => '', //来源单号 * 'flow_code' => '',//审批code * 'user_id' => '',//申请人id * ] * @throws \Exception */ public function createApproval($params); /** * Notes: 审批 * User: carlos * DateTime: 2022/11/10 9:16 * @param $params * [ * 'code' => '', //来源单号 * 'user_id' => '', //审批人 * 'line_code' => '',//审批节点编码 * 'approval' => '', // 审批结果 通过、拒绝 pass reject * 'params' => '',//审批参数 * ] */ public function approval($params); /** * Notes: 获取审批详情 * User: carlos * DateTime: 2022/11/14 14:10 * @param $params */ public function getApprovalDetail($params); } No newline at end of file
src/Service/Interfaces/Product/ProductServiceInterface.php +47 −0 Original line number Diff line number Diff line Loading @@ -244,6 +244,7 @@ interface ProductServiceInterface * 'package_volume' => 15.2, // 包装体积(cm3) * ], * 'material' => [] // 原料信息,暂无 * 'child_sku_data' => [] //必填 * ]; * @return array * @throws \Meibuyu\Rpc\Exceptions\RpcException Loading @@ -251,6 +252,52 @@ interface ProductServiceInterface */ public function updateSpecimenTransformToProduct(array $params,$sku_id,$status_id); /** * 创建样品转换的产品 * @param string $sku_id 主键 * @param array $status_id 允许转换的状态 * @param array $params 传入的参数 * $params = [ * 'product' => [ // 产品信息 * 'sku' => 'ABC123', // SKU,必填 * '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,必填 * 'images' => [], // 图片地址数组 * 'cost' => 12,5, // 生产成本 * 'package_cost' => 12,5, // 包装成本 * 'customs_unit_price' => 12,5, // 报关单价 * 'customs_cost' => 12,5, // 报关成本 * 'product_weight' => 15.2, // 产品重量(g) * 'product_length' => 15.2, // 产品长度(cm) * 'product_width' => 15.2, // 产品宽度(cm) * 'product_height' => 15.2, // 产品高度(cm) * 'product_volume' => 15.2, // 产品体积(cm3) * 'package_weight' => 15.2, // 包装重量(g) * 'package_length' => 15.2, // 包装长度(cm) * 'package_width' => 15.2, // 包装宽度(cm) * 'package_height' => 15.2, // 包装高度(cm) * 'package_volume' => 15.2, // 包装体积(cm3) * ], * 'material' => [] // 原料信息,暂无 * 'child_sku_data' => [] //必填 * ]; * @return array * @throws \Meibuyu\Rpc\Exceptions\RpcException * @author Zero */ public function createSpecimenTransformToProduct(array $params); /** * 检查产品是否上架 * @param array $params Loading
src/Service/Interfaces/Production/ExternalDeliveryServiceInterface.php 0 → 100644 +38 −0 Original line number Diff line number Diff line <?php /** * 供应链礼服备货小货发货相关rpc服务 */ namespace Meibuyu\Rpc\Service\Interfaces\Production; interface ExternalDeliveryServiceInterface { /** * 查看指定生产单发货记录 * @param $params * @author Liu lu * date 2022-11-11 */ public function productionDeliveryDetail($params); /** * 创建发货记录 * @param $params * @author Liu lu * date 2022-11-14 */ public function createDeliveryRecord($params); /** * 待确认发货详情展示 * @param $productionId * @author Liu lu * date 2022-11-14 */ public function deliveryPendingDisplay($productionId); } No newline at end of file
src/Service/Interfaces/Production/ExternalProductionServiceInterface.php 0 → 100644 +38 −0 Original line number Diff line number Diff line <?php /** * 供应链礼服备货小货生产单rpc服务 */ namespace Meibuyu\Rpc\Service\Interfaces\Production; interface ExternalProductionServiceInterface { /** * 生产单列表 * @return mixed * @param $params * @author Liu lu * date 2022-11-10 */ public function productionList($params); /** * 生产单列表标签 * @param $params * @author Liu lu * date 2022-11-10 */ public function productionTabList($params); /** * 生产单查看详情 * @author Liu lu * date 2022-11-11 */ public function productionView($id); } No newline at end of file
src/Service/Interfaces/Production/ProductionServiceInterface.php +9 −0 Original line number Diff line number Diff line Loading @@ -147,4 +147,13 @@ interface ProductionServiceInterface */ public function isReadProductionMessage(array $params); /** * Notes: 获取礼服备货单信息 * User: carlos * DateTime: 2022/11/8 18:48 * @param $code * @return array */ public function getStockUpOrder($code): array; }