From e2399b6aa61b2d8963283e107fe11233ec62aecc Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Wed, 14 Oct 2020 20:58:34 +0800 Subject: [PATCH] =?UTF-8?q?add:=E6=96=B0=E5=A2=9E=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/database/seeds/DomainMenusSeed.php | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 catch/domain/database/seeds/DomainMenusSeed.php diff --git a/catch/domain/database/seeds/DomainMenusSeed.php b/catch/domain/database/seeds/DomainMenusSeed.php new file mode 100644 index 0000000..9808999 --- /dev/null +++ b/catch/domain/database/seeds/DomainMenusSeed.php @@ -0,0 +1,97 @@ +getPermissions(), 'permissions', 'parent_id'); + } + + protected function getPermissions() + { + return array ( + 0 => + array ( + 'id' => 72, + 'permission_name' => '域名管理', + 'parent_id' => 0, + 'level' => '', + 'route' => '/domain', + 'icon' => 'el-icon-stopwatch', + 'module' => 'domain', + 'creator_id' => 1, + 'permission_mark' => 'domain', + 'component' => 'layout', + 'redirect' => '/domain/index', + 'keepalive' => 1, + 'type' => 1, + 'hidden' => 1, + 'sort' => 1, + 'created_at' => 1601105834, + 'updated_at' => 1601105834, + 'deleted_at' => 0, + ), + 1 => + array ( + 'id' => 73, + 'permission_name' => '域名设置', + 'parent_id' => 72, + 'level' => '72', + 'route' => '/domain/index', + 'icon' => 'el-icon-setting', + 'module' => 'domain', + 'creator_id' => 1, + 'permission_mark' => 'domain', + 'component' => 'domain', + 'redirect' => '', + 'keepalive' => 1, + 'type' => 1, + 'hidden' => 1, + 'sort' => 8, + 'created_at' => 1601105879, + 'updated_at' => 1601112604, + 'deleted_at' => 0, + ), + 2 => + array ( + 'id' => 84, + 'permission_name' => '域名记录', + 'parent_id' => 72, + 'level' => '72', + 'route' => '/domain/record/:domain', + 'icon' => 'el-icon-document', + 'module' => 'domain', + 'creator_id' => 1, + 'permission_mark' => 'domainRecord', + 'component' => 'domainRecord', + 'redirect' => '', + 'keepalive' => 1, + 'type' => 1, + 'hidden' => 2, + 'sort' => 1, + 'created_at' => 1601112569, + 'updated_at' => 1601112606, + 'deleted_at' => 0, + ), +); + } +}