Loading src/Service/Interfaces/Product/ProductServiceInterface.php +69 −0 Original line number Diff line number Diff line Loading @@ -206,6 +206,51 @@ interface ProductServiceInterface */ public function specimenTransformToProduct(array $params); /** * 更新样品转换的产品 * @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' => [] // 原料信息,暂无 * ]; * @return array * @throws \Meibuyu\Rpc\Exceptions\RpcException * @author Zero */ public function updateSpecimenTransformToProduct(array $params,$sku_id,$status_id); /** * 检查产品是否上架 * @param array $params Loading Loading @@ -285,4 +330,28 @@ interface ProductServiceInterface * @return array */ public function getChildProductsByProductFilter($filters, $childProductFields = ['*']): array; public function createDraftProduct(array $params); /** * Notes: 通过站点和团队获取仓库主sku列表 * User: linjixin * DateTime: 2022/11/7 11:12 */ public function getSkuListByTeamAndSite($params); /** * Notes: 通过仓库主sku获取子sku属性 * User: linjixin * DateTime: 2022/11/7 11:13 */ public function getChildSkuByStoreSku($params); /** * 创建属于草稿状态(不展示出来)的主 SKU * @return array * @throws \Meibuyu\Rpc\Exceptions\RpcException * @author QJK */ } src/Service/Interfaces/PurchaseNew/PurchaseDemandServiceInterface.php 0 → 100644 +29 −0 Original line number Diff line number Diff line <?php namespace Meibuyu\Rpc\Service\Interfaces\PurchaseNew; interface PurchaseDemandServiceInterface { /** * 同步请款状态 * 审核通过 * { "purchase_id":"采购单id", * "reject_reason":"驳回缘由", 审核驳回需要填充 * "flag":true|false //true审核通过 false审核驳回 * } * @return mixed */ public function createPurchaseDemand(array $data); /** * 扫描物流号或批次号查询 * @param array $demandIds * @return bool */ public function deleteDemandByIds(array $demandIds): bool; } No newline at end of file src/Service/Interfaces/User/AuthenticationInterface.php +9 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,15 @@ interface AuthenticationInterface public function isAdmin($userId): bool; /** * 获取用户对应权限角色名称列表 * @param $userId * @return array */ public function getUserRoleNames($userId): array; /** * 动态同步外部系统数据列表到某个权限数据详情表 * @param string $code new_data_auth 表 code Loading Loading
src/Service/Interfaces/Product/ProductServiceInterface.php +69 −0 Original line number Diff line number Diff line Loading @@ -206,6 +206,51 @@ interface ProductServiceInterface */ public function specimenTransformToProduct(array $params); /** * 更新样品转换的产品 * @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' => [] // 原料信息,暂无 * ]; * @return array * @throws \Meibuyu\Rpc\Exceptions\RpcException * @author Zero */ public function updateSpecimenTransformToProduct(array $params,$sku_id,$status_id); /** * 检查产品是否上架 * @param array $params Loading Loading @@ -285,4 +330,28 @@ interface ProductServiceInterface * @return array */ public function getChildProductsByProductFilter($filters, $childProductFields = ['*']): array; public function createDraftProduct(array $params); /** * Notes: 通过站点和团队获取仓库主sku列表 * User: linjixin * DateTime: 2022/11/7 11:12 */ public function getSkuListByTeamAndSite($params); /** * Notes: 通过仓库主sku获取子sku属性 * User: linjixin * DateTime: 2022/11/7 11:13 */ public function getChildSkuByStoreSku($params); /** * 创建属于草稿状态(不展示出来)的主 SKU * @return array * @throws \Meibuyu\Rpc\Exceptions\RpcException * @author QJK */ }
src/Service/Interfaces/PurchaseNew/PurchaseDemandServiceInterface.php 0 → 100644 +29 −0 Original line number Diff line number Diff line <?php namespace Meibuyu\Rpc\Service\Interfaces\PurchaseNew; interface PurchaseDemandServiceInterface { /** * 同步请款状态 * 审核通过 * { "purchase_id":"采购单id", * "reject_reason":"驳回缘由", 审核驳回需要填充 * "flag":true|false //true审核通过 false审核驳回 * } * @return mixed */ public function createPurchaseDemand(array $data); /** * 扫描物流号或批次号查询 * @param array $demandIds * @return bool */ public function deleteDemandByIds(array $demandIds): bool; } No newline at end of file
src/Service/Interfaces/User/AuthenticationInterface.php +9 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,15 @@ interface AuthenticationInterface public function isAdmin($userId): bool; /** * 获取用户对应权限角色名称列表 * @param $userId * @return array */ public function getUserRoleNames($userId): array; /** * 动态同步外部系统数据列表到某个权限数据详情表 * @param string $code new_data_auth 表 code Loading