Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
4b31a5c7
Commit
4b31a5c7
authored
Aug 23, 2019
by
xmy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2'
parents
e43e836a
6279371e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
182 additions
and
121 deletions
+182
-121
src/Buyer/Lib/BillInterface.php
+11
-7
src/Craftsman/Lib/CraftsmanInterface.php
+12
-0
src/Goods/Lib/GoodsInterface.php
+125
-114
src/Recharge/Enum/RechargeCmq.php
+17
-0
src/TimesCard/Enum/TimesCardCmq.php
+17
-0
No files found.
src/Buyer/Lib/BillInterface.php
View file @
4b31a5c7
...
@@ -12,7 +12,7 @@ namespace Hdll\Services\Buyer\Lib;
...
@@ -12,7 +12,7 @@ namespace Hdll\Services\Buyer\Lib;
use
Swoft\Core\ResultInterface
;
use
Swoft\Core\ResultInterface
;
/**
/**
* @method ResultInterface deferSaveBill(
string $token,int $order_id,int $buyer_id,int $store_id,string $order_sn,int $money
)
* @method ResultInterface deferSaveBill(
int $order_id,int $buyer_id,int $store_id,string $order_sn,int $money,string $orderName,int $orderType
)
* @method ResultInterface deferGetListByOrderId(int $storeId, int $orderId)
* @method ResultInterface deferGetListByOrderId(int $storeId, int $orderId)
* Interface AgencyInterface
* Interface AgencyInterface
* @package App\Lib
* @package App\Lib
...
@@ -21,11 +21,13 @@ interface BillInterface{
...
@@ -21,11 +21,13 @@ interface BillInterface{
/**
/**
* 保存账单数据
* 保存账单数据
* @param int $orderId //订单id
* @param int $orderId //订单id
* @param int $buyerId // 买家id
* @param int $buyerId // 买家id
* @param int $storeId // 店铺id
* @param int $storeId // 店铺id
* @param string $orderSn //订单号
* @param string $orderSn //订单号
* @param int $money //订单金额
* @param int $money //订单金额
* @param string $orderName //订单名称
* @param int $orderType //订单类型
* @return mixed
* @return mixed
* @author Administrator
* @author Administrator
*/
*/
...
@@ -34,7 +36,9 @@ interface BillInterface{
...
@@ -34,7 +36,9 @@ interface BillInterface{
int
$buyerId
,
int
$buyerId
,
int
$storeId
,
int
$storeId
,
string
$orderSn
,
string
$orderSn
,
int
$money
int
$money
,
string
$orderName
,
int
$orderType
);
);
public
function
getListByOrderId
(
int
$storeId
,
int
$orderId
);
public
function
getListByOrderId
(
int
$storeId
,
int
$orderId
);
...
...
src/Craftsman/Lib/CraftsmanInterface.php
View file @
4b31a5c7
...
@@ -20,6 +20,7 @@ use Swoft\Core\ResultInterface;
...
@@ -20,6 +20,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferGetCraftsmenByUnionId(string $unionId)
* @method ResultInterface deferGetCraftsmenByUnionId(string $unionId)
* @method ResultInterface deferGetCraftsmenById(int $storeId, int $cmanId)
* @method ResultInterface deferGetCraftsmenById(int $storeId, int $cmanId)
* @method ResultInterface deferGetCraftsmenByIds(int $storeId, array $cmanIds)
* @method ResultInterface deferGetCraftsmenByIds(int $storeId, array $cmanIds)
* @method ResultInterface deferSyncItems(int $storeId, array $itemIds, int $mode)
*/
*/
interface
CraftsmanInterface
interface
CraftsmanInterface
{
{
...
@@ -74,4 +75,14 @@ interface CraftsmanInterface
...
@@ -74,4 +75,14 @@ interface CraftsmanInterface
*/
*/
public
function
getCraftsmenByIds
(
int
$storeId
,
array
$cmanIds
);
public
function
getCraftsmenByIds
(
int
$storeId
,
array
$cmanIds
);
/**
* 提供给商品服务,用来同步店员所属的商品
*
* @param integer $storeId
* @param array $itemIds
* @param integer $mode 取值:1 表示新增,2 表示去除
* @return boolen
*/
public
function
syncItems
(
int
$storeId
,
array
$itemIds
,
int
$mode
);
}
}
\ No newline at end of file
src/Goods/Lib/GoodsInterface.php
View file @
4b31a5c7
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
namespace
Hdll\Services\Goods\Lib
;
namespace
Hdll\Services\Goods\Lib
;
use
App\Exception\ServiceException
;
use
Swoft\Core\ResultInterface
;
use
Swoft\Core\ResultInterface
;
/**
/**
...
@@ -25,126 +26,128 @@ use Swoft\Core\ResultInterface;
...
@@ -25,126 +26,128 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferAdminCountActivity($storeId)
* @method ResultInterface deferAdminCountActivity($storeId)
* @method ResultInterface deferGetTopThreeSales($storeId)
* @method ResultInterface deferGetTopThreeSales($storeId)
* @method ResultInterface deferGetReturnVisitByGoodsIds($storeId, $goodsIds)
* @method ResultInterface deferGetReturnVisitByGoodsIds($storeId, $goodsIds)
* @method ResultInterface deferCountEvaluate($storeId, $time)
* @method ResultInterface deferFind($storeId, $id)
* Interface GoodsInterface
* Interface GoodsInterface
* @package Hdll\Services\Goods\Lib
* @package Hdll\Services\Goods\Lib
*/
*/
interface
GoodsInterface
interface
GoodsInterface
{
{
/**
/**
* 获取商品
* 获取商品
* @param $storeId
* @param $storeId
* @return [
* @param $id
* 'gcId' 商品类ID
* @return [
* 'asId' 服务
ID
* 'gcId' 商品类
ID
* 'stock' 库存
* 'asId' 服务ID
* 'name' 名称
* 'stock' 库存
* 'image' 图片
* 'name' 名称
* 'price' 价格
* 'image' 图片
* 'state' 状态
* 'price' 价格
* 'body' 描述
* 'state' 状态
* 'originalPrice' 原价
* 'body' 描述
* 'sales' 销量
* 'originalPrice' 原价
* ]
* 'sales' 销量
* @param $id
* ]
* @return mixed
* @return mixed
* @author Administrator
* @author Administrator
*/
*/
public
function
get
(
$storeId
,
$id
);
public
function
get
(
$storeId
,
$id
);
/**
/**
* 增加商品销量
* 增加商品销量
* 减少商品库存
* 减少商品库存
* @param $storeId
* @param $storeId
* @param $goodsId
* @param $goodsId
* @return mixed
* @return mixed
* @author Administrator
* @author Administrator
*/
*/
public
function
incSales
(
$storeId
,
$goodsId
);
public
function
incSales
(
$storeId
,
$goodsId
);
/**
/**
* 减少商品销量
* 减少商品销量
* 增加商品库存
* 增加商品库存
* @param $storeId
* @param $storeId
* @param $goodsId
* @param $goodsId
* @return mixed
* @return mixed
* @author Administrator
* @author Administrator
*/
*/
public
function
decSales
(
$storeId
,
$goodsId
);
public
function
decSales
(
$storeId
,
$goodsId
);
/**
/**
* 获取商品服务
* 获取商品服务
* @param $storeId
* @param $storeId
* @param $goodsId
* @param $goodsId
* @param $type 1 付款后 2 服务前 3 服务后
* @param $type 1 付款后 2 服务前 3 服务后
* @return mixed
* @return mixed
* @author Administrator
* @author Administrator
*/
*/
public
function
getServiceByGoodsId
(
$storeId
,
$goodsId
,
$type
=
3
);
public
function
getServiceByGoodsId
(
$storeId
,
$goodsId
,
$type
=
3
);
/**
/**
* 获取用户回访
* 获取用户回访
* @param $storeId
* @param $storeId
* @param $goodsId
* @param $goodsId
* @param $type 1 之前 2 之后
* @param $type 1 之前 2 之后
* @return mixed
* @return mixed
* @author Administrator
* @author Administrator
*/
*/
public
function
getReturnVisitByGoodsId
(
$storeId
,
$goodsId
,
$type
=
2
);
public
function
getReturnVisitByGoodsId
(
$storeId
,
$goodsId
,
$type
=
2
);
/**
/**
* 获取商品列表 ids
* 获取商品列表 ids
* @param $ids
* @param $ids
* @param $storeId
* @param $storeId
* @param $order
* @param $order
* @return mixed
* @return mixed
* @author Administrator
* @author Administrator
*/
*/
public
function
listByIds
(
array
$ids
,
$storeId
,
$order
=
[
'id'
,
'DESC'
]);
public
function
listByIds
(
array
$ids
,
$storeId
,
$order
=
[
'id'
,
'DESC'
]);
/**
/**
* 获取sku信息
* 获取sku信息
* @param $skuId
* @param $skuId
* @param $goodsId
* @param $goodsId
* @param $storeId
* @param $storeId
* @return mixed
* @return mixed
* @author work
* @author work
*/
*/
public
function
getSkuInfo
(
$skuId
,
$goodsId
,
$storeId
);
public
function
getSkuInfo
(
$skuId
,
$goodsId
,
$storeId
);
/**
/**
* 获取多个sku信息
* 获取多个sku信息
* @param $goodsId
* @param $goodsId
* @param $skuIds
* @param $skuIds
* @return mixed
* @return mixed
* @author work
* @author work
*/
*/
public
function
getSkuByIds
(
$goodsId
,
$skuIds
,
$storeId
);
public
function
getSkuByIds
(
$goodsId
,
$skuIds
,
$storeId
);
public
function
getSkuByGoodsId
(
$goodsId
,
$storeId
);
public
function
getSkuByGoodsId
(
$goodsId
,
$storeId
);
/**
/**
* 获取商品规格属性
* 获取商品规格属性
* @param $goodsId
* @param $goodsId
* @param $storeId
* @param $storeId
* @return mixed
* @return mixed
* @author work
* @author work
*/
*/
public
function
getSpecAttributeByGoodsId
(
$goodsId
,
$storeId
);
public
function
getSpecAttributeByGoodsId
(
$goodsId
,
$storeId
);
/**
/**
* 添加后续服务模版
* 添加后续服务模版
* @param $storeId
* @param $storeId
* @return mixed
* @return mixed
* @author work
* @author work
*/
*/
public
function
afterServiceTmp
(
$storeId
);
public
function
afterServiceTmp
(
$storeId
);
/**
/**
* 获取商品数量
* 获取商品数量
...
@@ -175,4 +178,12 @@ interface GoodsInterface
...
@@ -175,4 +178,12 @@ interface GoodsInterface
* @author work
* @author work
*/
*/
public
function
getReturnVisitByGoodsIds
(
$storeId
,
$goodsIds
);
public
function
getReturnVisitByGoodsIds
(
$storeId
,
$goodsIds
);
/**
* 获取商品(包括已删除)
* @param $storeId
* @param $id
* @return array|mixed
*/
public
function
find
(
$storeId
,
$id
);
}
}
src/Recharge/Enum/RechargeCmq.php
0 → 100644
View file @
4b31a5c7
<?php
/**
* Created by PhpStorm.
* User: mac
* Date: 2019-01-10
* Time: 09:58
*/
namespace
Hdll\Services\Recharge\Enum
;
class
RechargeCmq
{
const
TOPIC
=
'recharge'
;
const
PAY_STATUS
=
'payStatus'
;
// 购买储值卡状态修改回调
}
\ No newline at end of file
src/TimesCard/Enum/TimesCardCmq.php
0 → 100644
View file @
4b31a5c7
<?php
/**
* Created by PhpStorm.
* User: mac
* Date: 2019-01-10
* Time: 09:58
*/
namespace
Hdll\Services\TimesCard\Enum
;
class
TimesCardCmq
{
const
TOPIC
=
'timescard'
;
const
PAY_STATUS
=
'payStatus'
;
// 购买次卡状态修改回调
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment