chore: update module

This commit is contained in:
JaguarJack
2023-01-19 15:55:38 +08:00
parent 527aca2250
commit f3592265cb
8 changed files with 21 additions and 13 deletions

View File

@@ -15,9 +15,9 @@ class CommonServiceProvider extends CatchModuleServiceProvider
*
* @return string|array
*/
public function routePath(): string|array
public function moduleName(): string|array
{
// TODO: Implement path() method.
return CatchAdmin::getModuleRoutePath('common');
return 'common';
}
}

View File

@@ -22,9 +22,9 @@ class DevelopServiceProvider extends CatchModuleServiceProvider
*
* @return string|array
*/
public function routePath(): string|array
public function moduleName(): string|array
{
// TODO: Implement path() method.
return CatchAdmin::getModuleRoutePath('develop');
return 'develop';
}
}

View File

@@ -10,11 +10,11 @@ class {Module}ServiceProvider extends CatchModuleServiceProvider
/**
* route path
*
* @return string|array
* @return string
*/
public function routePath(): string|array
public function moduleName(): string
{
// TODO: Implement path() method.
return CatchAdmin::getModuleRoutePath('{module}');
return '{module}';
}
}
}

View File

@@ -23,9 +23,9 @@ class PermissionsServiceProvider extends CatchModuleServiceProvider
*
* @return string|array
*/
public function routePath(): string|array
public function moduleName(): string|array
{
// TODO: Implement path() method.
return CatchAdmin::getModuleRoutePath('Permissions');
return 'permissions';
}
}

View File

@@ -0,0 +1,4 @@
<?php
return [
'is_ok' => true
];

View File

@@ -0,0 +1,4 @@
<?php
return [
'is_ok' => true
];

View File

@@ -19,10 +19,10 @@ class UserServiceProvider extends CatchModuleServiceProvider
*
* @return string|array
*/
public function routePath(): string|array
public function moduleName(): string|array
{
// TODO: Implement path() method.
return CatchAdmin::getModuleRoutePath('user');
return 'user';
}
/**