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
725b3334
Commit
725b3334
authored
Aug 24, 2018
by
feixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单逻辑拆分
parent
2680b120
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
14 deletions
+46
-14
src/Order/Enum/OrderEnum.php
+0
-2
src/Order/Enum/SellerOrderEnum.php
+15
-0
src/Order/Lib/OrderInterface.php
+0
-12
src/Order/Lib/SellerOrderInterface.php
+31
-0
No files found.
src/Order/Enum/OrderEnum.php
View file @
725b3334
...
...
@@ -28,14 +28,12 @@ class OrderEnum
const
TYPE_CUT_PRICE
=
1
;
//砍价订单
const
TYPE_LIMIT
=
2
;
//限时购订单
const
TYPE_COLLECTION
=
3
;
//拼团
const
TYPE_VALUE_ADDED_SERVICE
=
4
;
//增值服务
const
ORDER_TYPES
=
[
self
::
TYPE_GOODS
,
self
::
TYPE_CUT_PRICE
,
self
::
TYPE_LIMIT
,
self
::
TYPE_COLLECTION
,
self
::
TYPE_VALUE_ADDED_SERVICE
,
];
//对账状态
...
...
src/Order/Enum/SellerOrderEnum.php
0 → 100644
View file @
725b3334
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/8/24
* Time: 13:56
*/
namespace
Hdll\Services\Order\Enum
;
class
SellerOrderEnum
{
const
TYPE_VALUE_ADDED_SERVICE
=
1
;
//增值服务
}
\ No newline at end of file
src/Order/Lib/OrderInterface.php
View file @
725b3334
...
...
@@ -52,18 +52,6 @@ interface OrderInterface
string
$activity_name
,
string
$reservation_time
=
''
);
public
function
sellerCreateOrder
(
int
$sellerId
,
int
$storeId
,
int
$itemId
,
int
$selectedNum
,
int
$orderType
,
float
$total
,
float
$goodsPrice
,
string
$goodsName
);
public
function
getOrderInfo
(
int
$storeId
,
int
$orderId
);
public
function
getOrderInfoBySn
(
int
$storeId
,
string
$orderSn
);
...
...
src/Order/Lib/SellerOrderInterface.php
0 → 100644
View file @
725b3334
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/8/24
* Time: 13:57
*/
namespace
Hdll\Services\Order\Lib
;
interface
SellerOrderInterface
{
public
function
sellerCreateOrder
(
int
$sellerId
,
int
$storeId
,
int
$itemId
,
int
$selectedNum
,
int
$orderType
,
float
$total
,
float
$goodsPrice
,
string
$goodsName
);
public
function
getOrderInfo
(
int
$storeId
,
int
$orderId
);
public
function
getOrderInfoBySn
(
int
$storeId
,
string
$orderSn
);
public
function
updateInfoById
(
int
$storeId
,
int
$orderId
,
array
$updateInfo
);
}
\ 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