fix:修复类型错误
This commit is contained in:
parent
2e81eb42d3
commit
07eaa5c274
@ -21,7 +21,7 @@ class ApiCategorySeed extends Seeder
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
$data = array (
|
||||
0 =>
|
||||
|
@ -21,7 +21,7 @@ class ApiTesterSeed extends Seeder
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
$data = array (
|
||||
0 =>
|
||||
|
@ -21,7 +21,7 @@ class ApiTesterUserenvSeed extends Seeder
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
$data = array (
|
||||
0 =>
|
||||
|
@ -20,7 +20,8 @@ class ApimanagerMenusSeed extends Seeder {
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run() {
|
||||
public function run(): void
|
||||
{
|
||||
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ class CmsMenusSeed extends Seeder
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ class DomainMenusSeed extends Seeder
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ class MonitorMenusSeed extends Seeder
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ class PermissionsMenusSeed extends Seeder
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ class RolesSeed extends Seeder
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
\catchAdmin\permissions\model\Roles::create([
|
||||
'role_name' => '超级管理员',
|
||||
|
@ -12,9 +12,9 @@ class UsersSeed extends Seeder
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
return \catchAdmin\permissions\model\Users::create([
|
||||
\catchAdmin\permissions\model\Users::create([
|
||||
'username' => 'admin',
|
||||
'password' => 'catchadmin',
|
||||
'email' => 'catch@admin.com',
|
||||
|
@ -21,7 +21,7 @@ class SmsMenusSeed extends Seeder
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ class ConfigSeed extends Seeder
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
|
@ -21,7 +21,7 @@ class SystemMenusSeed extends Seeder
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ class WechatMenusSeed extends Seeder
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user