Ver Fonte

定时任务模块console改名为timer

萤火科技 há 3 anos atrás
pai
commit
8589191207

+ 1 - 1
app/console/command/Timer.php → app/timer/command/Timer.php

@@ -10,7 +10,7 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\command;
+namespace app\timer\command;
 
 use think\console\Command;
 use think\console\Input;

+ 2 - 2
app/console/library/Tools.php → app/timer/library/Tools.php

@@ -10,12 +10,12 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\library;
+namespace app\timer\library;
 
 /**
  * 工具类
  * Class Tools
- * @package app\console\library
+ * @package app\timer\library
  */
 class Tools
 {

+ 2 - 2
app/console/model/Express.php → app/timer/model/Express.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model;
+namespace app\timer\model;
 
 use app\common\model\Express as ExpressModel;
 
 /**
  * 物流公司模型
  * Class Express
- * @package app\console\model
+ * @package app\timer\model
  */
 class Express extends ExpressModel
 {

+ 2 - 2
app/console/model/Goods.php → app/timer/model/Goods.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model;
+namespace app\timer\model;
 
 use app\common\model\Goods as GoodsModel;
 
 /**
  * 商品模型
  * Class Goods
- * @package app\console\model
+ * @package app\timer\model
  */
 class Goods extends GoodsModel
 {

+ 2 - 2
app/console/model/GoodsSku.php → app/timer/model/GoodsSku.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model;
+namespace app\timer\model;
 
 use app\common\model\GoodsSku as GoodsSkuModel;
 
 /**
  * 商品规格模型
  * Class GoodsSku
- * @package app\console\model
+ * @package app\timer\model
  */
 class GoodsSku extends GoodsSkuModel
 {

+ 1 - 1
app/console/model/Order.php → app/timer/model/Order.php

@@ -10,7 +10,7 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model;
+namespace app\timer\model;
 
 use app\common\enum\order\DeliveryStatus;
 use app\common\enum\order\ReceiptStatus;

+ 2 - 2
app/console/model/OrderAddress.php → app/timer/model/OrderAddress.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model;
+namespace app\timer\model;
 
 use app\common\model\OrderAddress as OrderAddressModel;
 
 /**
  * 订单收货地址模型
  * Class OrderAddress
- * @package app\console\model
+ * @package app\timer\model
  */
 class OrderAddress extends OrderAddressModel
 {

+ 2 - 2
app/console/model/OrderGoods.php → app/timer/model/OrderGoods.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model;
+namespace app\timer\model;
 
 use app\common\model\OrderGoods as OrderGoodsModel;
 
 /**
  * 订单商品模型
  * Class OrderGoods
- * @package app\console\model
+ * @package app\timer\model
  */
 class OrderGoods extends OrderGoodsModel
 {

+ 2 - 2
app/console/model/OrderRefund.php → app/timer/model/OrderRefund.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model;
+namespace app\timer\model;
 
 use app\common\model\OrderRefund as OrderRefundModel;
 
 /**
  * 售后单模型
  * Class OrderRefund
- * @package app\console\model
+ * @package app\timer\model
  */
 class OrderRefund extends OrderRefundModel
 {

+ 2 - 2
app/console/model/Setting.php → app/timer/model/Setting.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model;
+namespace app\timer\model;
 
 use app\common\model\store\Setting as SettingModel;
 
 /**
  * 系统设置模型
  * Class Wxapp
- * @package app\console\model
+ * @package app\timer\model
  */
 class Setting extends SettingModel
 {

+ 1 - 1
app/console/model/Store.php → app/timer/model/Store.php

@@ -10,7 +10,7 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model;
+namespace app\timer\model;
 
 use app\common\model\Store as StoreModel;
 

+ 3 - 3
app/console/model/User.php → app/timer/model/User.php

@@ -10,17 +10,17 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model;
+namespace app\timer\model;
 
 use app\common\model\User as UserModel;
 use app\common\model\user\Grade as UserGradeModel;
-use app\console\model\user\GradeLog as GradeLogModel;
+use app\timer\model\user\GradeLog as GradeLogModel;
 use app\common\enum\user\grade\log\ChangeType as ChangeTypeEnum;
 
 /**
  * 用户模型
  * Class User
- * @package app\console\model
+ * @package app\timer\model
  */
 class User extends UserModel
 {

+ 2 - 2
app/console/model/UserCoupon.php → app/timer/model/UserCoupon.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model;
+namespace app\timer\model;
 
 use app\common\model\UserCoupon as UserCouponModel;
 
 /**
  * 用户优惠券模型
  * Class UserCoupon
- * @package app\console\model
+ * @package app\timer\model
  */
 class UserCoupon extends UserCouponModel
 {

+ 2 - 2
app/console/model/recharge/Order.php → app/timer/model/recharge/Order.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model\recharge;
+namespace app\timer\model\recharge;
 
 use app\common\model\recharge\Order as OrderModel;
 
 /**
  * 用户充值订单模型
  * Class Order
- * @package app\console\model\recharge
+ * @package app\timer\model\recharge
  */
 class Order extends OrderModel
 {

+ 2 - 2
app/console/model/user/BalanceLog.php → app/timer/model/user/BalanceLog.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model\user;
+namespace app\timer\model\user;
 
 use app\common\model\user\BalanceLog as BalanceLogModel;
 
 /**
  * 用户余额变动明细模型
  * Class BalanceLog
- * @package app\console\model\user
+ * @package app\timer\model\user
  */
 class BalanceLog extends BalanceLogModel
 {

+ 2 - 2
app/console/model/user/Grade.php → app/timer/model/user/Grade.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model\user;
+namespace app\timer\model\user;
 
 use app\common\model\user\Grade as GradeModel;
 
 /**
  * 用户会员等级模型
  * Class Grade
- * @package app\console\model\user
+ * @package app\timer\model\user
  */
 class Grade extends GradeModel
 {

+ 2 - 2
app/console/model/user/GradeLog.php → app/timer/model/user/GradeLog.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model\user;
+namespace app\timer\model\user;
 
 use app\common\model\user\GradeLog as GradeLogModel;
 
 /**
  * 用户会员等级变更记录模型
  * Class GradeLog
- * @package app\console\model\user
+ * @package app\timer\model\user
  */
 class GradeLog extends GradeLogModel
 {

+ 2 - 2
app/console/model/user/PointsLog.php → app/timer/model/user/PointsLog.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\model\user;
+namespace app\timer\model\user;
 
 use app\common\model\user\PointsLog as PointsLogModel;
 
 /**
  * 用户余额变动明细模型
  * Class PointsLog
- * @package app\console\model\user
+ * @package app\timer\model\user
  */
 class PointsLog extends PointsLogModel
 {

+ 4 - 4
app/console/service/Order.php → app/timer/service/Order.php

@@ -10,20 +10,20 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\service;
+namespace app\timer\service;
 
-use app\console\model\Order as OrderModel;
+use app\timer\model\Order as OrderModel;
 use app\common\service\BaseService;
 use app\common\service\Order as OrderService;
 use app\common\service\order\Complete as OrderCompleteService;
 use app\common\enum\order\OrderStatus as OrderStatusEnum;
 use app\common\library\helper;
-use app\console\library\Tools;
+use app\timer\library\Tools;
 
 /**
  * 服务类:订单模块
  * Class Order
- * @package app\console\service
+ * @package app\timer\service
  */
 class Order extends BaseService
 {

+ 4 - 4
app/console/service/UserCoupon.php → app/timer/service/UserCoupon.php

@@ -10,17 +10,17 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\service;
+namespace app\timer\service;
 
 use app\common\library\helper;
-use app\console\library\Tools;
+use app\timer\library\Tools;
 use app\common\service\BaseService;
-use app\console\model\UserCoupon as UserCouponModel;
+use app\timer\model\UserCoupon as UserCouponModel;
 
 /**
  * 服务类:用户优惠券
  * Class Order
- * @package app\console\service
+ * @package app\timer\service
  */
 class UserCoupon extends BaseService
 {

+ 5 - 5
app/console/service/UserGrade.php → app/timer/service/UserGrade.php

@@ -10,19 +10,19 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\service;
+namespace app\timer\service;
 
 use app\common\library\helper;
-use app\console\library\Tools;
+use app\timer\library\Tools;
 use app\common\service\BaseService;
-use app\console\model\User as UserModel;
-use app\console\model\user\Grade as UserGradeModel;
+use app\timer\model\User as UserModel;
+use app\timer\model\user\Grade as UserGradeModel;
 
 
 /**
  * 服务类:会员等级
  * Class UserGrade
- * @package app\console\service
+ * @package app\timer\service
  */
 class UserGrade extends BaseService
 {

+ 4 - 4
app/console/task/Order.php → app/timer/task/Order.php

@@ -10,15 +10,15 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\task;
+namespace app\timer\task;
 
-use app\console\service\Order as OrderService;
-use app\console\model\Setting as SettingModel;
+use app\timer\service\Order as OrderService;
+use app\timer\model\Setting as SettingModel;
 
 /**
  * 定时任务:商城订单
  * Class Order
- * @package app\console\task
+ * @package app\timer\task
  */
 class Order extends Task
 {

+ 3 - 3
app/console/task/Store.php → app/timer/task/Store.php

@@ -10,15 +10,15 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\task;
+namespace app\timer\task;
 
 use think\facade\Event;
-use app\console\model\Store as StoreModel;
+use app\timer\model\Store as StoreModel;
 
 /**
  * 商城定时任务
  * Class StoreTask
- * @package app\console\task
+ * @package app\timer\task
  */
 class Store extends Task
 {

+ 2 - 2
app/console/task/Task.php → app/timer/task/Task.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\task;
+namespace app\timer\task;
 
 use think\facade\Cache;
 
 /**
  * 定时任务监听器
  * Class Listener
- * @package app\console\task
+ * @package app\timer\task
  */
 class Task
 {

+ 3 - 3
app/console/task/UserCoupon.php → app/timer/task/UserCoupon.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\task;
+namespace app\timer\task;
 
-use app\console\service\UserCoupon as UserCouponService;
+use app\timer\service\UserCoupon as UserCouponService;
 
 /**
  * 定时任务:设置优惠券过期状态
  * Class UserCoupon
- * @package app\console\task
+ * @package app\timer\task
  */
 class UserCoupon extends Task
 {

+ 3 - 3
app/console/task/UserGrade.php → app/timer/task/UserGrade.php

@@ -10,14 +10,14 @@
 // +----------------------------------------------------------------------
 declare (strict_types=1);
 
-namespace app\console\task;
+namespace app\timer\task;
 
-use app\console\service\UserGrade as UserGradeService;
+use app\timer\service\UserGrade as UserGradeService;
 
 /**
  * 定时任务:会员等级
  * Class UserGrade
- * @package app\console\task
+ * @package app\timer\task
  */
 class UserGrade extends Task
 {

+ 1 - 1
config/app.php

@@ -28,7 +28,7 @@ return [
     // 禁止URL访问的应用列表(自动多应用模式有效)
     'deny_app_list'    => [
         'common',
-        'console'
+        'timer'
     ],
 
     // 异常页面的模板文件

+ 1 - 1
config/console.php

@@ -6,6 +6,6 @@ return [
     // 指令定义
     'commands' => [
         // 定时任务
-        'timer' => \app\console\command\Timer::class,
+        'timer' => \app\timer\command\Timer::class,
     ],
 ];