新增模块权限导出

This commit is contained in:
JaguarJack
2020-06-25 08:36:29 +08:00
parent cfaec3fbc3
commit 4dc2978d61
2 changed files with 48 additions and 4 deletions

View File

@@ -0,0 +1,24 @@
<?php
use think\migration\Seeder;
class PermissionSeed extends Seeder
{
/**
* Run Method.
*
* Write your database seeder using this method.
*
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
{
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
}
protected function getPermissions()
{
{DATA}
}
}