4 Commits

Author SHA1 Message Date
JaguarJack
d7d36a28c0 update composer 2024-01-08 10:27:29 +08:00
JaguarJack
613ccca7b4 update composer 2024-01-08 10:21:08 +08:00
Jack Jaguar
07eaa5c274 fix:修复类型错误 2024-01-08 10:20:20 +08:00
JaguarJack
2e81eb42d3 update catch/permissions/database/seeds/DepartmentsSeed.php.
Signed-off-by: JaguarJack <njphper@gmail.com>
2024-01-08 00:36:16 +00:00
16 changed files with 22 additions and 18 deletions

View File

@@ -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 =>

View File

@@ -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 =>

View File

@@ -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 =>

View File

@@ -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');
}

View File

@@ -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');
}

View File

@@ -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');
}

View File

@@ -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');
}

View File

@@ -12,7 +12,7 @@ class DepartmentsSeed 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 = [
[

View File

@@ -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');
}

View File

@@ -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' => '超级管理员',

View File

@@ -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',

View File

@@ -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');
}

View File

@@ -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 = [
[

View File

@@ -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');
}

View File

@@ -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');
}

View File

@@ -22,7 +22,7 @@
"topthink/think-orm": "2.0.49",
"topthink/think-migration": "^3.0",
"thans/tp-jwt-auth": "^1.1",
"overtrue/wechat": "^4.2",
"w7corp/easywechat": "^4.2",
"phpoffice/phpspreadsheet": "^1.12",
"dragonmantank/cron-expression": "3.1",
"symfony/finder": "^4.4",
@@ -57,7 +57,10 @@
}
},
"config": {
"preferred-install": "dist"
"preferred-install": "dist",
"allow-plugins": {
"easywechat-composer/easywechat-composer": true
}
},
"scripts": {
"post-autoload-dump": [