Bladeren bron

Weenier utc项目部署 06231

wesmiler 3 jaren geleden
bovenliggende
commit
8b9e78b717
3 gewijzigde bestanden met toevoegingen van 33 en 70 verwijderingen
  1. 7 7
      app/Http/Controllers/ConfigController.php
  2. 26 0
      app/Services/Common/RoleMenuService.php
  3. 0 63
      app/Services/NoticeService.php

+ 7 - 7
app/Http/Controllers/ConfigController.php

@@ -9,28 +9,28 @@
 // | Author: laravel开发员 <laravel.qq.com>
 // +----------------------------------------------------------------------
 
-namespace App\Http\Controllers;
+namespace App\Http\Controllers\Admin;
 
-use App\Services\ConfigService;
+use App\Services\Common\ConfigGroupService;
 
 /**
- * 配置管理-控制器
+ * 配置分组-控制器
  * @author laravel开发员
  * @since 2020/11/11
- * Class ConfigController
+ * Class ConfigGroupController
  * @package App\Http\Controllers
  */
-class ConfigController extends Backend
+class ConfigGroupController extends Backend
 {
     /**
      * 构造函数
      * @author laravel开发员
      * @since 2020/11/11
-     * ConfigController constructor.
+     * ConfigGroupController constructor.
      */
     public function __construct()
     {
         parent::__construct();
-        $this->service = new ConfigService();
+        $this->service = new ConfigGroupService();
     }
 }

+ 26 - 0
app/Services/Common/RoleMenuService.php

@@ -0,0 +1,26 @@
+<?php
+// +----------------------------------------------------------------------
+// | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
+// +----------------------------------------------------------------------
+// | 版权所有 2017~2021 LARAVEL研发中心
+// +----------------------------------------------------------------------
+// | 官方网站: http://www.laravel.cn
+// +----------------------------------------------------------------------
+// | Author: laravel开发员 <laravel.qq.com>
+// +----------------------------------------------------------------------
+
+namespace App\Services\Common;
+
+use App\Services\BaseService;
+
+/**
+ * 角色菜单关系-服务类
+ * @author laravel开发员
+ * @since 2020/11/11
+ * Class RoleMenuService
+ * @package App\Services\Common
+ */
+class RoleMenuService extends BaseService
+{
+
+}

+ 0 - 63
app/Services/NoticeService.php

@@ -1,63 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
-// +----------------------------------------------------------------------
-// | 版权所有 2017~2021 LARAVEL研发中心
-// +----------------------------------------------------------------------
-// | 官方网站: http://www.laravel.cn
-// +----------------------------------------------------------------------
-// | Author: laravel开发员 <laravel.qq.com>
-// +----------------------------------------------------------------------
-
-namespace App\Services;
-
-use App\Models\NoticeModel;
-
-/**
- * 通知公告-服务类
- * @author laravel开发员
- * @since 2020/11/11
- * Class NoticeService
- * @package App\Services
- */
-class NoticeService extends BaseService
-{
-    /**
-     * 构造函数
-     * @author laravel开发员
-     * @since 2020/11/11
-     * NoticeService constructor.
-     */
-    public function __construct()
-    {
-        $this->model = new NoticeModel();
-    }
-
-    /**
-     * 设置置顶
-     * @return array
-     * @since 2020/11/21
-     * @author laravel开发员
-     */
-    public function setIsTop()
-    {
-        $data = request()->all();
-        if (!$data['id']) {
-            return message('记录ID不能为空', false);
-        }
-        if (!$data['is_top']) {
-            return message('设置置顶不能为空', false);
-        }
-        $error = '';
-        $item = [
-            'id' => $data['id'],
-            'is_top' => $data['is_top']
-        ];
-        $rowId = $this->model->edit($item, $error);
-        if (!$rowId) {
-            return message($error, false);
-        }
-        return message();
-    }
-
-}