Skip to content

Commit

Permalink
init file frame
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Jan 9, 2018
1 parent 1959823 commit 2941f26
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 0 deletions.
52 changes: 52 additions & 0 deletions config/fecshop_rediscart.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php
/**
* FecShop file.
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/

return [
/**
* 下面是第三方扩展库包的配置方式
*/
// 这个是扩展extensions的总开关,true代表打开
'enable' => true,
// 各个入口的配置
'app' => [
// 1.公用层
'common' => [
// 在公用层的开关,设置成false后,公用层的配置将失效
'enable' => true,
// 公用层的具体配置下载下面
'config' => [
'services' => [
'class' => 'fecshop\services\Cart',
// 子服务
'childService' => [
'quote' => [
'class' => 'fecshop\services\cart\Quote',
],
'quoteItem' => [
'class' => 'fecshop\services\cart\QuoteItem',
],
]
],
'modules' => [

],
]
],

],

];









Empty file added models/redis/Cart.php
Empty file.
Empty file added models/redis/cart/Item.php
Empty file.
22 changes: 22 additions & 0 deletions services/Cart.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/

namespace fecshop\rediscart\services;

use Yii;

/**
* Cart services. 购物车service, 执行购物车部分对应的方法。
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
class Cart extends \fecshop\services\Cart
{

}
24 changes: 24 additions & 0 deletions services/cart/Quote.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/

namespace fecshop\rediscart\services\cart;

//use fecshop\models\mysqldb\Cart as MyCart;
use fecshop\services\Service;
use Yii;

/**
* Cart services. 对购物车操作的具体实现部分。
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
class Quote extends \fecshop\services\cart\Quote
{

}
24 changes: 24 additions & 0 deletions services/cart/QuoteItem.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/

namespace fecshop\rediscart\services\cart;

//use fecshop\models\mysqldb\Cart as MyCart;
use fecshop\services\Service;
use Yii;

/**
* Cart services. 对购物车操作的具体实现部分。
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
class QuoteItem extends \fecshop\services\cart\QuoteItem
{

}

0 comments on commit 2941f26

Please sign in to comment.