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

调整rpc接口文件命名空间

parent 0343a4e1
Copyright (c) 2006-2019 meibuyu library
Copyright (c) 2006-2021 meibuyu library
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
......
{
"name": "meibuyu/micro",
"description": "美不语微服务公共接口库",
"name": "meibuyu/rpc",
"description": "美不语微服务RPC接口库",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "梁俊杰",
"email": "blithe8787@163.com"
"name": "Zero",
"email": "wangyuanwmm@163.com"
}
],
"require": {
"ext-json": "*",
"ext-redis": "*",
"ext-gd": "*",
"ext-curl": "*",
"ext-mbstring": "*",
"hyperf/cache": "~1.1.0",
"hyperf/framework": "~1.1.0",
"hyperf/db-connection": "~1.1.0",
"hyperf/validation": "~1.1.0",
"hyperf/command": "~1.1.0",
"hyperf/redis": "~1.1.0",
"hyperf/guzzle": "~1.1.0",
"hyperf/config": "~1.1.0",
"hyperf/logger": "~1.1.0",
"hyperf/service-governance": "~1.1.0",
"fzaninotto/faker": "^1.9",
"phpoffice/phpspreadsheet": "^1.18",
"dimsav/unix-zipper": "1.*",
"hyperf/amqp": "~1.1.0"
},
"autoload": {
"psr-4": {
"Meibuyu\\Micro\\": "src/"
},
"files": [
"src/functions.php",
"src/const.php"
]
"Meibuyu\\Rpc\\": "src/"
}
},
"extra": {
"hyperf": {
"config": "Meibuyu\\Micro\\ConfigProvider"
"config": "Meibuyu\\Rpc\\ConfigProvider"
}
}
}
<?php
namespace Meibuyu\Micro\Exceptions;
namespace Meibuyu\Rpc\Exceptions;
use Throwable;
......
<?php
/**
* Created by PhpStorm.
* User: zero
* User: Zero
* Date: 2020/3/27
* Time: 15:03
*/
namespace Meibuyu\Micro\Service\Interfaces;
namespace Meibuyu\Rpc\Service\Interfaces\App;
interface AppServiceInterface
{
......
......@@ -6,7 +6,7 @@
* Time: 15:07
*/
namespace Meibuyu\Micro\Service\Interfaces;
namespace Meibuyu\Rpc\Service\Interfaces\Datacenter;
interface DatacenterServiceInterface
{
......@@ -36,5 +36,4 @@ interface DatacenterServiceInterface
*/
public function getCurrencyListRate($currencyIds, $field = ['id', 'currency_id', 'rate_val'], $where = []): array;
}
<?php
namespace Meibuyu\Micro\Service\Interfaces\File;
namespace Meibuyu\Rpc\Service\Interfaces\File;
interface FileServiceInterface
{
......
<?php
namespace Meibuyu\Micro\Service\Interfaces\Flow;
namespace Meibuyu\Rpc\Service\Interfaces\Flow;
interface GetConnectModuleServiceInterface
{
......
<?php
namespace Meibuyu\Micro\Service\Interfaces\Flow;
namespace Meibuyu\Rpc\Service\Interfaces\Flow;
interface ProcessFormServiceInterface
{
......
<?php
namespace Meibuyu\Micro\Service\Interfaces\Logistics;
namespace Meibuyu\Rpc\Service\Interfaces\Logistics;
interface LogisticsServiceInterface
{
......@@ -12,8 +10,7 @@ interface LogisticsServiceInterface
* @param array $logisticsInfo 物流公司信息 $logisticsInfo = [['logistics_code' => '', 'logistics_no' => '']];
* @return mixed
*/
public function push($module,$logisticsInfo);
public function push($module, $logisticsInfo);
/**
* 根据物流单号查询物流信息
......
......@@ -6,7 +6,7 @@
* Time: 15:48
*/
namespace Meibuyu\Micro\Service\Interfaces\DingTalk;
namespace Meibuyu\Rpc\Service\Interfaces\Message\DingTalk;
interface DingDepartmentServiceInterface
{
......
......@@ -6,9 +6,7 @@
* Time: 15:48
*/
namespace Meibuyu\Micro\Service\Interfaces\DingTalk;
use phpDocumentor\Reflection\Types\Mixed_;
namespace Meibuyu\Rpc\Service\Interfaces\Message\DingTalk;
interface DingMessageServiceInterface
{
......@@ -24,7 +22,6 @@ interface DingMessageServiceInterface
*/
public function sendGeneralMessage($sender, $cid, $message);
/**
* 发送工作通知消息
* @param array $params
......
......@@ -6,11 +6,12 @@
* Time: 15:48
*/
namespace Meibuyu\Micro\Service\Interfaces\DingTalk;
namespace Meibuyu\Rpc\Service\Interfaces\Message\DingTalk;
interface DingUserServiceInterface
{
/** 通过用户id获取单个用户信息
/**
* 通过用户id获取单个用户信息
* @param string $ding_user_id 钉钉用户id
* @return array 钉钉用户信息
*/
......
......@@ -6,9 +6,7 @@
* Time: 15:48
*/
namespace Meibuyu\Micro\Service\Interfaces;
use phpDocumentor\Reflection\Types\Integer;
namespace Meibuyu\Rpc\Service\Interfaces\Message;
interface MessageServiceInterface
{
......@@ -23,7 +21,6 @@ interface MessageServiceInterface
*/
public function send(array $receiveUserId, $application, $templateId = 0, $sendUserId = 0, $replace = [], $content = ''): bool;
/**
* description:发送邮件
* author: fuyunnan
......@@ -36,7 +33,6 @@ interface MessageServiceInterface
*/
public function sendMail($userList, $subject, $body): bool;
/**
* 发送markdown文本消息
* @param array $receiveUserId
......@@ -58,4 +54,5 @@ interface MessageServiceInterface
* @return bool
*/
public function sendSms(string $phone, string $templateCode, array $params): bool;
}
......@@ -6,7 +6,7 @@
* Time: 10:09
*/
namespace Meibuyu\Micro\Service\Interfaces\Operation;
namespace Meibuyu\Rpc\Service\Interfaces\Operation;
interface OperationServiceInterface
{
......
......@@ -6,9 +6,7 @@
* Time: 15:48
*/
namespace Meibuyu\Micro\Service\Interfaces\Order;
namespace Meibuyu\Rpc\Service\Interfaces\Order;
interface ShopifyOrderServiceInterface
{
......
<?php
namespace Meibuyu\Micro\Service\Interfaces\Order;
namespace Meibuyu\Rpc\Service\Interfaces\Order;
interface StockUpServiceInterface
{
......@@ -9,19 +9,19 @@ interface StockUpServiceInterface
* @param $stockNo
* @return mixed
*/
public function stockIntoUpdateStatus($stockNo):bool;
public function stockIntoUpdateStatus($stockNo): bool;
/**
* 跟进物流单号
* @param $logisticsNo
* @return array
*/
public function getStockUpInfoByLogisticsNo($logisticsNo):array;
public function getStockUpInfoByLogisticsNo($logisticsNo): array;
/**
*
* @param $sourceNo
* @return array
*/
public function getStockUpInfoByOrderNo($sourceNo):array;
public function getStockUpInfoByOrderNo($sourceNo): array;
}
......@@ -6,7 +6,7 @@
* Time: 10:09
*/
namespace Meibuyu\Micro\Service\Interfaces\Order;
namespace Meibuyu\Rpc\Service\Interfaces\Order;
interface SubOrderServiceInterface
{
......@@ -57,7 +57,6 @@ interface SubOrderServiceInterface
* @param array $source 来源单号数组
* @return array
*/
public function getBySourceSite($source): array;
/**
......@@ -83,7 +82,7 @@ interface SubOrderServiceInterface
* ]
* @return bool
*/
public function purchaseCompleted($data,$type): bool;
public function purchaseCompleted($data, $type): bool;
/**
* 1688采购异常订单 修改OA子订单状态
......@@ -91,7 +90,7 @@ interface SubOrderServiceInterface
* @param $errorCode //异常信息 1 取消 2其他
* @return array
*/
public function purchaseError($orderId,$errorCode):array ;
public function purchaseError($orderId, $errorCode): array;
/**
* 1688采购取消
......@@ -99,7 +98,7 @@ interface SubOrderServiceInterface
* @param $editData
* @return bool
*/
public function purchaseCancel($orderNo,$editData = []):bool;
public function purchaseCancel($orderNo, $editData = []): bool;
/**
* 1688采购 修改oa子订单
......@@ -111,7 +110,7 @@ interface SubOrderServiceInterface
* ]
* @return array
*/
public function purchaseEdit($editData):bool ;
public function purchaseEdit($editData): bool;
/**
* 删除物流信息
......@@ -121,6 +120,6 @@ interface SubOrderServiceInterface
* ]
* @return bool
*/
public function purchaseDelete($data):bool;
public function purchaseDelete($data): bool;
}
......@@ -6,7 +6,7 @@
* Time: 15:07
*/
namespace Meibuyu\Micro\Service\Interfaces\Product;
namespace Meibuyu\Rpc\Service\Interfaces\Product;
interface MaterialServiceInterface
{
......
......@@ -6,7 +6,7 @@
* Time: 15:07
*/
namespace Meibuyu\Micro\Service\Interfaces\Product;
namespace Meibuyu\Rpc\Service\Interfaces\Product;
interface PlatformProductChildServiceInterface
{
......
......@@ -6,7 +6,7 @@
* Time: 15:07
*/
namespace Meibuyu\Micro\Service\Interfaces\Product;
namespace Meibuyu\Rpc\Service\Interfaces\Product;
interface PlatformProductServiceInterface
{
......
......@@ -6,7 +6,7 @@
* Time: 15:07
*/
namespace Meibuyu\Micro\Service\Interfaces\Product;
namespace Meibuyu\Rpc\Service\Interfaces\Product;
interface ProductChildServiceInterface
{
......
......@@ -6,7 +6,7 @@
* Time: 15:07
*/
namespace Meibuyu\Micro\Service\Interfaces\Product;
namespace Meibuyu\Rpc\Service\Interfaces\Product;
interface ProductServiceInterface
{
......
......@@ -6,7 +6,7 @@
* Time: 9:39
*/
namespace Meibuyu\Micro\Service\Interfaces\Product;
namespace Meibuyu\Rpc\Service\Interfaces\Product;
interface ShopifyProductServiceInterface
{
......
......@@ -6,10 +6,10 @@
* Time: 9:39
*/
namespace Meibuyu\Micro\Service\Interfaces\Product;
namespace Meibuyu\Rpc\Service\Interfaces\Product;
use Exception;
use Meibuyu\Micro\Exceptions\RpcException;
use Meibuyu\Rpc\Exceptions\RpcException;
interface ShopifyServiceInterface
{
......
<?php
/**
* Created by PhpStorm.
* User: 王源
* Date: 2020/1/9
* Time: 15:07
*/
namespace Meibuyu\Micro\Service\Interfaces;
interface ProductChildServiceInterface
{
/**
* 获取单个数据
* @param int $id 子SKU id
* @param array $columns 子SKU表的字段,默认显示全部
* @param array $relations 子SKU的关联关系,可传入['brand', 'category', 'product_name', 'images', 'cost']
* @return array|null
*/
public function get($id, array $columns = ['*'], array $relations = []);
/**
* 通过id列表获取产品数组
* @param array $idList 子SKUid的列表, 默认去重
* @param array $columns 子SKU表的字段,默认显示全部
* @param array $relations 子SKU的关联关系,可传入['brand', 'category', 'product_name', 'images', 'cost']
* @return array 默认keyBy('id')
*/
public function getByIdList(array $idList, array $columns = ['*'], array $relations = []): array;
/**
* 通过sku列表获取子产品列表
* @param array $skuList 默认去重
* @param array $columns
* @return array 默认keyBy('child_sku')
*/
public function getListBySkuList(array $skuList, array $columns = ['id']);
}
<?php
namespace Meibuyu\Micro\Service\Interfaces\Production;
use Meibuyu\Micro\Exceptions\HttpResponseException;
namespace Meibuyu\Rpc\Service\Interfaces\Production;
interface ProductionServiceInterface
{
......@@ -19,7 +17,7 @@ interface ProductionServiceInterface
* 'count' => '123', // 入库数量, 必须
* ]
* ]
* @throws HttpResponseException
* @throws \Meibuyu\Rpc\Exceptions\RpcException
* @author Zero
*/
public function warehousingCallback(array $params);
......
<?php
namespace Meibuyu\Micro\Service\Interfaces\Purchase;
namespace Meibuyu\Rpc\Service\Interfaces\Purchase;
interface PurchaseDoneServiceInterface
{
......
......@@ -6,7 +6,7 @@
* Time: 14:22:52
*/
namespace Meibuyu\Micro\Service\Interfaces\Purchase;
namespace Meibuyu\Rpc\Service\Interfaces\Purchase;
interface PurchaseTaskServiceInterface
{
......@@ -29,7 +29,7 @@ interface PurchaseTaskServiceInterface
* 'auth' => Auth::user() // 当前用户
* ]
* @return bool
* @throws \Meibuyu\Micro\Exceptions\RpcException
* @throws \Meibuyu\Rpc\Exceptions\RpcException
* @author Zero
*/
public function noticeCancel(array $data);
......@@ -40,7 +40,7 @@ interface PurchaseTaskServiceInterface
* @param array $data 要更新的数据如['specification', 'remark']等
* @param int $type 采购类型,默认为订单采购,可传参数[1(订单采购); 2(备货采购); 3(样品采购)]
* @return bool
* @throws \Meibuyu\Micro\Exceptions\RpcException
* @throws \Meibuyu\Rpc\Exceptions\RpcException
* @author Zero
*/
public function updateProduct($sourceId, array $data, $type = 1);
......
......@@ -6,7 +6,7 @@
* Time: 15:48
*/
namespace Meibuyu\Micro\Service\Interfaces;
namespace Meibuyu\Rpc\Service\Interfaces\Store;
interface DispatchPlanServiceInterface
......
......@@ -6,7 +6,7 @@
* Time: 15:07
*/
namespace Meibuyu\Micro\Service\Interfaces\Store;
namespace Meibuyu\Rpc\Service\Interfaces\Store;
interface StoreMaterialServiceInterface
{
......
......@@ -6,7 +6,7 @@
* Time: 15:07
*/
namespace Meibuyu\Micro\Service\Interfaces;
namespace Meibuyu\Rpc\Service\Interfaces\Store;
interface StoreServiceInterface
{
......@@ -34,16 +34,16 @@ interface StoreServiceInterface
* description:根据筛选条件获取仓库的库存列表 对库存筛选实现大一统
* 参数格式 不需要可不传入对应的键
* $args['inTeamIds'] =[];
$args['notInTeamIds'] = [];
$args['inWhIds'] = []; //仓库id
$args['notInWhIds'] = [];
$args['inProductIds'] = [];
$args['notInProductIds'] = [];
$args['where'] = [];
$args['group'] = ['product_id'];//默认['product_id']
$args['keyBy'] = 'product_id';//默认排序
$args['isKeyBy'] = $condition['isKeyBy'] ?? true;//是否加keyBy;
$args['isGroupBy'] = $condition['isGroupBy'] ?? true;//是否加分组;
* $args['notInTeamIds'] = [];
* $args['inWhIds'] = []; //仓库id
* $args['notInWhIds'] = [];
* $args['inProductIds'] = [];
* $args['notInProductIds'] = [];
* $args['where'] = [];
* $args['group'] = ['product_id'];//默认['product_id']
* $args['keyBy'] = 'product_id';//默认排序
* $args['isKeyBy'] = $condition['isKeyBy'] ?? true;//是否加keyBy;
* $args['isGroupBy'] = $condition['isGroupBy'] ?? true;//是否加分组;
*
* author: fuyunnan
* @param array $condition 筛选条件
......@@ -157,7 +157,6 @@ interface StoreServiceInterface
public function createBatchWarehousingStatus(array $attributes): bool;
/**
* description:批量创建出库单,出库单直接出库
* author: fuyunnan
......@@ -297,6 +296,7 @@ interface StoreServiceInterface
* Date: 2020/11/25
*/
public function autoSkuStock($data): array;
/**
* description:订单通知取消更改字段 不在生成出库单
* author: fuyunnan
......
<?php
/**
* Created by PhpStorm.
* User: zero
* User: Zero
* Date: 2020/5/26
* Time: 15:17
*/
namespace Meibuyu\Micro\Service\Interfaces\User;
namespace Meibuyu\Rpc\Service\Interfaces\User;
interface AccessServiceInterface
{
......
......@@ -6,7 +6,7 @@
* Time: 15:07
*/
namespace Meibuyu\Micro\Service\Interfaces;
namespace Meibuyu\Rpc\Service\Interfaces\User;
interface BaseInfoServiceInterface
{
......@@ -14,8 +14,6 @@ interface BaseInfoServiceInterface
/**
* 通过单个id获取岗位数组
* @param int $id
* @param array $columns
* @param array $relations
* @return array
*/
public function getPositionListById(int $id): array;
......
......@@ -6,7 +6,7 @@
* Time: 15:07
*/
namespace Meibuyu\Micro\Service\Interfaces;
namespace Meibuyu\Rpc\Service\Interfaces\User;
interface UserServiceInterface
{
......
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