This commit is contained in:
@ -18,7 +18,7 @@ return [
|
||||
'redis' => [
|
||||
'pool' => 'default',
|
||||
],
|
||||
'channel' => '{queue}',
|
||||
'channel' => '{default}',
|
||||
'timeout' => 2,
|
||||
'retry_seconds' => 5,
|
||||
'handle_timeout' => 10,
|
||||
@ -33,7 +33,7 @@ return [
|
||||
'redis' => [
|
||||
'pool' => 'default',
|
||||
],
|
||||
'channel' => '{drp.custom}',
|
||||
'channel' => '{queue:whf}',
|
||||
'timeout' => 2,
|
||||
'retry_seconds' => 5,
|
||||
'handle_timeout' => 10,
|
||||
|
@ -14,6 +14,8 @@ use App\JsonRpc\EasyAppServiceConsumer;
|
||||
use App\JsonRpc\EasyAppServiceInterface;
|
||||
use App\JsonRpc\InventoryServiceConsumer;
|
||||
use App\JsonRpc\InventoryServiceInterface;
|
||||
use App\JsonRpc\RoleServiceConsumer;
|
||||
use App\JsonRpc\RoleServiceInterface;
|
||||
use App\JsonRpc\UserAuthServiceConsumer;
|
||||
use App\JsonRpc\UserAuthServiceInterface;
|
||||
use App\Log\StdoutLoggerFactory;
|
||||
@ -24,4 +26,5 @@ return [
|
||||
UserAuthServiceInterface::class => UserAuthServiceConsumer::class,
|
||||
EasyAppServiceInterface::class => EasyAppServiceConsumer::class,
|
||||
InventoryServiceInterface::class => InventoryServiceConsumer::class,
|
||||
RoleServiceInterface::class => RoleServiceConsumer::class,
|
||||
];
|
||||
|
@ -18,5 +18,30 @@ return [
|
||||
'id' => 1,
|
||||
'action' => 'UserController@userLogin',
|
||||
'name' => '用户登录',
|
||||
]
|
||||
],
|
||||
[
|
||||
'id' => 2,
|
||||
'action' => 'UserController@userLogout',
|
||||
'name' => '用户登出',
|
||||
],
|
||||
[
|
||||
'id' => 3,
|
||||
'action' => 'RoleController@disableRoles',
|
||||
'name' => '禁用|启用角色',
|
||||
],
|
||||
[
|
||||
'id' => 4,
|
||||
'action' => 'RoleController@delRoles',
|
||||
'name' => '删除角色',
|
||||
],
|
||||
[
|
||||
'id' => 5,
|
||||
'action' => 'RoleController@addCompanyModule',
|
||||
'name' => '公司授权',
|
||||
],
|
||||
[
|
||||
'id' => 6,
|
||||
'action' => 'RoleController@assignRolePermissions',
|
||||
'name' => '角色授权',
|
||||
],
|
||||
];
|
@ -13,6 +13,7 @@ declare(strict_types=1);
|
||||
|
||||
use App\JsonRpc\EasyAppServiceInterface;
|
||||
use App\JsonRpc\InventoryServiceInterface;
|
||||
use App\JsonRpc\RoleServiceInterface;
|
||||
use App\JsonRpc\UserAuthServiceInterface;
|
||||
use function Hyperf\Support\value;
|
||||
|
||||
@ -23,6 +24,7 @@ return [
|
||||
'UserAuthService' => UserAuthServiceInterface::class,
|
||||
'EasyAppService' => EasyAppServiceInterface::class,
|
||||
'InventoryService' => InventoryServiceInterface::class,
|
||||
'RoleService' => RoleServiceInterface::class,
|
||||
];
|
||||
foreach ($services as $name => $interface) {
|
||||
$consumers[] = [
|
||||
|
Reference in New Issue
Block a user